/*
 * This is a RANDOMLY GENERATED PROGRAM.
 *
 * Generator: csmith 2.4.0
 * Git version: 8b4af0a
 * Options:   --bitfields --packed-struct --output test9649.c
 * Seed:      212019826182320511
 */

#include "csmith.h"


static long __undefined;

/* --- Struct/Union Declarations --- */
/* --- GLOBAL VARIABLES --- */
static uint32_t g_4 = 6UL;
static int32_t g_11 = 1L;
static int32_t *g_75[8][9] = {{&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11},{&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11},{&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11},{&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11},{&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11},{&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11},{&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11},{&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11}};
static int32_t **g_74 = &g_75[6][1];
static volatile uint32_t g_80[6] = {0x2A5ADA2CL,0x2A5ADA2CL,0x2A5ADA2CL,0x2A5ADA2CL,0x2A5ADA2CL,0x2A5ADA2CL};
static uint32_t g_83 = 0x300DCE92L;
static uint32_t g_106 = 0x06BCBB3BL;
static uint64_t g_111 = 0xC664DA59623B7989LL;
static int32_t g_122 = (-10L);
static volatile int32_t *g_175 = (void*)0;
static volatile int32_t **g_174 = &g_175;
static volatile int32_t ***g_173 = &g_174;
static volatile int32_t *** volatile * volatile g_172 = &g_173;/* VOLATILE GLOBAL g_172 */
static int8_t g_184 = 0x5BL;
static int16_t g_185 = 0L;
static volatile int32_t * volatile *g_188 = &g_175;
static uint16_t g_196 = 65528UL;
static int64_t g_200 = 0x2BE3816ABE45C5BDLL;
static int64_t *g_210 = &g_200;
static int64_t **g_209 = &g_210;
static uint8_t g_214 = 0xB4L;
static uint8_t *** volatile g_215 = (void*)0;/* VOLATILE GLOBAL g_215 */
static uint8_t *** volatile g_216 = (void*)0;/* VOLATILE GLOBAL g_216 */
static uint32_t *g_222 = &g_106;
static int32_t g_274 = 1L;
static volatile int32_t g_276 = 0xA690759AL;/* VOLATILE GLOBAL g_276 */
static volatile int32_t *g_275 = &g_276;
static int64_t g_330[3][10] = {{1L,1L,1L,1L,1L,1L,1L,1L,1L,1L},{1L,1L,1L,1L,1L,1L,1L,1L,1L,1L},{1L,1L,1L,1L,1L,1L,1L,1L,1L,1L}};
static volatile uint16_t * volatile g_363 = (void*)0;/* VOLATILE GLOBAL g_363 */
static volatile uint16_t * volatile *g_362 = &g_363;
static int64_t ** const **g_369 = (void*)0;
static int64_t ** const ***g_368 = &g_369;
static int64_t g_376[3][10] = {{5L,0x1A7038308B870F2BLL,0x46E6E1D153B631F8LL,0L,0L,0x46E6E1D153B631F8LL,0x1A7038308B870F2BLL,5L,0x1A7038308B870F2BLL,0x46E6E1D153B631F8LL},{(-7L),0x7E1D3733F335B223LL,0L,0x7E1D3733F335B223LL,(-7L),0x46E6E1D153B631F8LL,0x46E6E1D153B631F8LL,(-7L),0x7E1D3733F335B223LL,0L},{5L,5L,0L,(-7L),6L,(-7L),0L,5L,5L,0L}};
static int64_t * const g_375 = &g_376[1][4];
static int64_t * const *g_374[7][10] = {{&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375},{&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375},{&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375},{&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375},{&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375},{&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375},{&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375,&g_375}};
static volatile int64_t g_417 = 7L;/* VOLATILE GLOBAL g_417 */
static uint32_t g_483 = 0x37986FDEL;
static uint32_t g_484 = 0x9B2C12CDL;
static uint32_t g_485 = 3UL;
static uint32_t g_486 = 4UL;
static uint32_t g_487 = 18446744073709551615UL;
static uint32_t g_488[9][5] = {{0x759058EDL,0x759058EDL,0x759058EDL,0x759058EDL,0x759058EDL},{0x759058EDL,0x759058EDL,0x759058EDL,0x759058EDL,0x759058EDL},{0x759058EDL,0x759058EDL,0x759058EDL,0x759058EDL,0x759058EDL},{0x759058EDL,0x759058EDL,0x759058EDL,0x759058EDL,0x759058EDL},{0x759058EDL,0x759058EDL,0x759058EDL,0x759058EDL,0x759058EDL},{0x759058EDL,0x759058EDL,0x759058EDL,0x759058EDL,0x759058EDL},{0x759058EDL,0x759058EDL,0x759058EDL,0x759058EDL,0x759058EDL},{0x759058EDL,0x759058EDL,0x759058EDL,0x759058EDL,0x759058EDL},{0x759058EDL,0x759058EDL,0x759058EDL,0x759058EDL,0x759058EDL}};
static uint32_t g_489[4][7] = {{0x5059EDEDL,1UL,0x5059EDEDL,18446744073709551609UL,18446744073709551615UL,18446744073709551615UL,18446744073709551609UL},{0x476055A2L,6UL,0x476055A2L,18446744073709551611UL,0x0CA02A92L,0x0CA02A92L,18446744073709551611UL},{0x5059EDEDL,1UL,0x5059EDEDL,18446744073709551609UL,18446744073709551615UL,18446744073709551615UL,18446744073709551609UL},{0x476055A2L,6UL,0x476055A2L,18446744073709551611UL,0x0CA02A92L,0x0CA02A92L,18446744073709551611UL}};
static uint32_t g_490 = 18446744073709551613UL;
static uint32_t g_491[2] = {0x83B718C6L,0x83B718C6L};
static uint32_t g_492 = 0x8754166CL;
static uint32_t g_493 = 18446744073709551613UL;
static uint32_t g_494[5] = {6UL,6UL,6UL,6UL,6UL};
static uint32_t g_495 = 0x9F45E62EL;
static uint32_t g_496 = 0xC2D29334L;
static uint32_t g_497 = 2UL;
static uint32_t * const g_482[4][10] = {{(void*)0,&g_486,(void*)0,&g_488[1][0],&g_486,&g_494[0],&g_494[0],&g_486,&g_488[1][0],(void*)0},{&g_492,&g_492,&g_484,&g_486,&g_497,&g_484,&g_497,&g_486,&g_484,&g_492},{&g_497,&g_494[0],(void*)0,&g_497,&g_488[1][0],&g_488[1][0],&g_497,(void*)0,&g_494[0],&g_497},{(void*)0,&g_492,&g_494[0],&g_488[1][0],&g_492,&g_488[1][0],&g_494[0],&g_492,(void*)0,(void*)0}};
static uint32_t * const *g_481 = &g_482[2][9];
static int32_t ** volatile g_640 = &g_75[6][2];/* VOLATILE GLOBAL g_640 */
static volatile int64_t g_688[2] = {(-9L),(-9L)};
static volatile int32_t * volatile * volatile * volatile *g_690 = (void*)0;
static const uint32_t **g_694[2] = {(void*)0,(void*)0};
static const uint32_t ***g_693 = &g_694[0];
static const uint32_t *** volatile * volatile g_692 = &g_693;/* VOLATILE GLOBAL g_692 */
static const uint32_t *** volatile * volatile * volatile g_695 = &g_692;/* VOLATILE GLOBAL g_695 */
static const uint16_t *g_710[10][1] = {{&g_196},{&g_196},{&g_196},{&g_196},{&g_196},{&g_196},{&g_196},{&g_196},{&g_196},{&g_196}};
static const uint16_t **g_709 = &g_710[7][0];
static volatile int8_t g_779[5] = {0x87L,0x87L,0x87L,0x87L,0x87L};
static volatile int8_t *g_778 = &g_779[3];
static volatile int8_t ** volatile g_777[5][7] = {{&g_778,(void*)0,(void*)0,&g_778,&g_778,&g_778,&g_778},{&g_778,&g_778,&g_778,&g_778,&g_778,&g_778,&g_778},{&g_778,&g_778,&g_778,&g_778,&g_778,&g_778,&g_778},{&g_778,&g_778,&g_778,&g_778,(void*)0,(void*)0,&g_778},{&g_778,&g_778,&g_778,&g_778,(void*)0,&g_778,&g_778}};
static int8_t g_789 = (-1L);
static int32_t g_820[10][1] = {{(-5L)},{(-4L)},{(-5L)},{(-4L)},{(-5L)},{(-4L)},{(-5L)},{(-4L)},{(-5L)},{(-4L)}};
static volatile int32_t g_923 = 0x2A400C80L;/* VOLATILE GLOBAL g_923 */
static int16_t g_960 = 0xF387L;
static volatile int8_t g_961 = 0x8CL;/* VOLATILE GLOBAL g_961 */
static int32_t *g_1000[9][3][9] = {{{&g_274,&g_820[2][0],&g_274,&g_274,&g_820[2][0],&g_274,&g_820[2][0],&g_274,(void*)0},{&g_820[2][0],&g_274,&g_11,&g_274,&g_820[2][0],&g_274,&g_820[8][0],&g_274,&g_820[2][0]},{(void*)0,&g_274,&g_820[2][0],(void*)0,&g_274,&g_820[2][0],&g_274,&g_274,&g_820[0][0]}},{{&g_11,&g_820[2][0],&g_274,&g_11,&g_274,&g_11,&g_274,&g_820[2][0],&g_274},{&g_11,(void*)0,(void*)0,&g_274,&g_820[2][0],(void*)0,(void*)0,&g_274,&g_11},{&g_274,&g_274,&g_820[2][0],&g_274,&g_274,&g_820[2][0],&g_820[0][0],(void*)0,&g_820[2][0]}},{{&g_11,&g_820[2][0],(void*)0,&g_820[2][0],&g_820[0][0],&g_11,(void*)0,&g_274,(void*)0},{&g_274,&g_274,&g_11,&g_274,&g_820[2][0],(void*)0,(void*)0,(void*)0,&g_820[2][0]},{&g_274,(void*)0,&g_820[2][0],(void*)0,&g_274,&g_820[4][0],&g_820[2][0],(void*)0,&g_820[2][0]}},{{&g_274,&g_11,(void*)0,&g_820[2][0],&g_274,&g_820[4][0],&g_274,&g_820[2][0],&g_820[7][0]},{&g_820[4][0],(void*)0,&g_274,&g_274,&g_820[2][0],(void*)0,&g_820[3][0],&g_820[0][0],&g_274},{&g_820[2][0],&g_820[3][0],&g_11,&g_820[0][0],&g_11,&g_11,&g_820[0][0],&g_11,&g_820[3][0]}},{{&g_274,&g_11,&g_274,&g_274,&g_274,&g_820[2][0],&g_820[1][0],&g_11,&g_820[2][0]},{(void*)0,&g_11,&g_274,&g_274,&g_274,(void*)0,&g_274,&g_11,&g_820[4][0]},{&g_11,&g_11,(void*)0,&g_820[2][0],&g_11,(void*)0,&g_820[2][0],(void*)0,&g_274}},{{(void*)0,&g_820[3][0],&g_274,(void*)0,&g_820[1][0],&g_11,(void*)0,&g_274,&g_820[0][0]},{(void*)0,(void*)0,&g_11,&g_11,&g_274,&g_11,(void*)0,&g_274,&g_820[8][0]},{&g_820[2][0],&g_11,&g_820[1][0],&g_820[3][0],(void*)0,&g_820[0][0],(void*)0,&g_274,&g_11}},{{&g_11,(void*)0,&g_820[7][0],&g_820[2][0],&g_11,&g_820[2][0],(void*)0,(void*)0,&g_11},{&g_274,&g_274,&g_11,&g_820[8][0],&g_820[2][0],&g_274,&g_820[2][0],&g_820[8][0],&g_11},{&g_820[2][0],&g_820[2][0],&g_11,&g_820[2][0],&g_274,&g_820[2][0],&g_274,&g_274,&g_820[2][0]}},{{&g_820[2][0],&g_274,&g_820[2][0],(void*)0,&g_274,&g_11,&g_820[1][0],(void*)0,&g_11},{(void*)0,(void*)0,&g_11,&g_274,(void*)0,&g_820[2][0],&g_820[0][0],(void*)0,(void*)0},{&g_274,&g_820[2][0],&g_11,&g_11,&g_274,&g_274,&g_820[3][0],&g_11,(void*)0}},{{&g_11,&g_274,&g_820[7][0],&g_820[2][0],&g_11,&g_11,&g_274,&g_274,&g_274},{&g_11,&g_820[0][0],&g_820[2][0],(void*)0,&g_820[2][0],&g_11,&g_274,&g_274,&g_274},{&g_11,&g_274,&g_820[8][0],&g_11,&g_274,&g_11,&g_820[7][0],&g_11,(void*)0}}};
static int32_t ** volatile g_999[4] = {&g_1000[0][0][1],&g_1000[0][0][1],&g_1000[0][0][1],&g_1000[0][0][1]};
static volatile uint8_t g_1034 = 1UL;/* VOLATILE GLOBAL g_1034 */
static int16_t g_1062 = 1L;
static int32_t **g_1181[2] = {(void*)0,(void*)0};
static volatile int16_t g_1218 = 0xC87EL;/* VOLATILE GLOBAL g_1218 */
static volatile int16_t *g_1217 = &g_1218;
static volatile int16_t **g_1216 = &g_1217;
static int16_t * volatile g_1255 = &g_960;/* VOLATILE GLOBAL g_1255 */
static int16_t * volatile *g_1254 = &g_1255;
static const uint64_t *g_1267[7][5] = {{&g_111,&g_111,&g_111,&g_111,&g_111},{&g_111,&g_111,&g_111,&g_111,&g_111},{&g_111,&g_111,&g_111,&g_111,&g_111},{&g_111,&g_111,&g_111,&g_111,&g_111},{&g_111,&g_111,&g_111,&g_111,&g_111},{&g_111,&g_111,&g_111,&g_111,&g_111},{&g_111,&g_111,&g_111,&g_111,&g_111}};
static const uint64_t **g_1266 = &g_1267[1][2];
static int32_t g_1294 = 0x4FE0D7B3L;
static int8_t g_1324 = 0xCEL;
static uint32_t g_1325[5][4] = {{6UL,2UL,0xDDA4AE3AL,2UL},{2UL,4294967292UL,0xDDA4AE3AL,0xDDA4AE3AL},{6UL,6UL,2UL,0xDDA4AE3AL},{0x391292E9L,4294967292UL,0x391292E9L,2UL},{0x391292E9L,2UL,2UL,0x391292E9L}};
static uint32_t * const ***g_1351 = (void*)0;
static uint32_t * const ****g_1350[10][8] = {{&g_1351,&g_1351,(void*)0,(void*)0,&g_1351,&g_1351,&g_1351,(void*)0},{(void*)0,&g_1351,&g_1351,&g_1351,&g_1351,&g_1351,&g_1351,(void*)0},{&g_1351,(void*)0,(void*)0,&g_1351,(void*)0,(void*)0,&g_1351,(void*)0},{&g_1351,(void*)0,(void*)0,(void*)0,&g_1351,(void*)0,&g_1351,&g_1351},{&g_1351,&g_1351,(void*)0,&g_1351,&g_1351,(void*)0,&g_1351,&g_1351},{&g_1351,&g_1351,(void*)0,&g_1351,(void*)0,&g_1351,(void*)0,&g_1351},{&g_1351,&g_1351,&g_1351,&g_1351,&g_1351,&g_1351,&g_1351,&g_1351},{(void*)0,&g_1351,&g_1351,&g_1351,&g_1351,(void*)0,(void*)0,&g_1351},{&g_1351,&g_1351,&g_1351,(void*)0,(void*)0,(void*)0,(void*)0,&g_1351},{(void*)0,(void*)0,&g_1351,(void*)0,(void*)0,(void*)0,&g_1351,&g_1351}};
static const uint16_t g_1358 = 65531UL;
static uint32_t **g_1385 = &g_222;
static uint8_t g_1419 = 0x20L;
static int8_t **g_1521 = (void*)0;
static int32_t g_1527 = (-1L);
static int16_t g_1528 = 1L;
static volatile uint8_t * const g_1534[7] = {(void*)0,&g_1034,&g_1034,(void*)0,&g_1034,&g_1034,(void*)0};
static volatile uint8_t * const  volatile * const g_1533 = &g_1534[0];
static int8_t *g_1547[1] = {&g_789};
static int8_t ** const g_1546 = &g_1547[0];
static int8_t ** const *g_1545 = &g_1546;
static uint8_t g_1608 = 0x6FL;
static const volatile uint16_t g_1617 = 4UL;/* VOLATILE GLOBAL g_1617 */
static int32_t ** const  volatile g_1627 = &g_75[6][1];/* VOLATILE GLOBAL g_1627 */
static int64_t ***g_1833 = &g_209;
static uint64_t g_1836[2][6][8] = {{{0x8B237080A7BD546CLL,0x0581EAA22EED7DC5LL,0x0581EAA22EED7DC5LL,0x8B237080A7BD546CLL,0UL,18446744073709551611UL,0xFD6097FCA6CE7FC5LL,0x5859412AF7FABBCELL},{3UL,0x8B237080A7BD546CLL,0x7912165B387910DALL,0xFD6097FCA6CE7FC5LL,0x7912165B387910DALL,0x8B237080A7BD546CLL,3UL,0x27172693B5CA49BBLL},{0x7912165B387910DALL,0x8B237080A7BD546CLL,3UL,0x27172693B5CA49BBLL,18446744073709551611UL,18446744073709551611UL,0x27172693B5CA49BBLL,3UL},{0x0581EAA22EED7DC5LL,0xFD6097FCA6CE7FC5LL,0x0581EAA22EED7DC5LL,0xF7C376D6EC4E9039LL,0x7912165B387910DALL,3UL,0UL,3UL},{0x5859412AF7FABBCELL,0UL,0xF7C376D6EC4E9039LL,0UL,0x5859412AF7FABBCELL,0x8B237080A7BD546CLL,0xFD6097FCA6CE7FC5LL,3UL},{0UL,0x7912165B387910DALL,0UL,0xF7C376D6EC4E9039LL,0xF7C376D6EC4E9039LL,0UL,0x7912165B387910DALL,0UL}},{{0x0581EAA22EED7DC5LL,0x8B237080A7BD546CLL,0UL,18446744073709551611UL,0xFD6097FCA6CE7FC5LL,0x5859412AF7FABBCELL,0xFD6097FCA6CE7FC5LL,18446744073709551611UL},{0xF7C376D6EC4E9039LL,0x27172693B5CA49BBLL,0xF7C376D6EC4E9039LL,3UL,18446744073709551611UL,0x5859412AF7FABBCELL,0UL,0UL},{0UL,0x8B237080A7BD546CLL,0x0581EAA22EED7DC5LL,0x0581EAA22EED7DC5LL,0x8B237080A7BD546CLL,0UL,18446744073709551611UL,0xFD6097FCA6CE7FC5LL},{0UL,0x7912165B387910DALL,0UL,0x8B237080A7BD546CLL,18446744073709551611UL,0x8B237080A7BD546CLL,0UL,0x7912165B387910DALL},{0xF7C376D6EC4E9039LL,0UL,0x5859412AF7FABBCELL,0x8B237080A7BD546CLL,0xFD6097FCA6CE7FC5LL,3UL,3UL,0xFD6097FCA6CE7FC5LL},{0x0581EAA22EED7DC5LL,0xFD6097FCA6CE7FC5LL,0xFD6097FCA6CE7FC5LL,0x0581EAA22EED7DC5LL,0xF7C376D6EC4E9039LL,0x7912165B387910DALL,3UL,0UL}}};
static int32_t ** volatile g_1878 = &g_1000[0][0][6];/* VOLATILE GLOBAL g_1878 */
static uint16_t * const **g_1889 = (void*)0;
static uint16_t * const ***g_1888 = &g_1889;
static uint16_t * const ****g_1887 = &g_1888;
static uint64_t *g_1972[3] = {&g_1836[0][3][7],&g_1836[0][3][7],&g_1836[0][3][7]};
static uint64_t *g_1973 = &g_1836[1][3][0];
static volatile int32_t g_2040 = 0L;/* VOLATILE GLOBAL g_2040 */
static uint8_t g_2094 = 0x8EL;
static uint32_t ***g_2270 = &g_1385;
static uint32_t ****g_2269 = &g_2270;
static uint16_t g_2357 = 65531UL;
static volatile int8_t g_2364 = 0x2BL;/* VOLATILE GLOBAL g_2364 */
static uint8_t *** volatile *g_2436[6][1][4] = {{{&g_215,&g_216,&g_215,&g_216}},{{&g_215,&g_215,&g_216,&g_216}},{{&g_216,&g_216,&g_215,&g_215}},{{&g_215,&g_215,&g_215,&g_215}},{{&g_216,&g_215,&g_216,&g_215}},{{&g_215,&g_215,&g_215,&g_215}}};
static uint8_t *** volatile **g_2435 = &g_2436[0][0][0];
static uint16_t **g_2522 = (void*)0;
static int8_t * const * const g_2529[5] = {&g_1547[0],&g_1547[0],&g_1547[0],&g_1547[0],&g_1547[0]};
static int8_t * const * const *g_2528[9] = {&g_2529[2],(void*)0,&g_2529[2],&g_2529[2],(void*)0,&g_2529[2],&g_2529[2],(void*)0,&g_2529[2]};
static int8_t * const * const **g_2527 = &g_2528[1];
static int32_t * volatile * volatile * volatile * volatile g_2596 = (void*)0;/* VOLATILE GLOBAL g_2596 */
static int32_t * volatile * volatile * volatile * volatile *g_2595[4][7] = {{&g_2596,(void*)0,&g_2596,(void*)0,&g_2596,&g_2596,(void*)0},{&g_2596,&g_2596,&g_2596,(void*)0,(void*)0,&g_2596,&g_2596},{(void*)0,&g_2596,&g_2596,&g_2596,&g_2596,(void*)0,&g_2596},{&g_2596,(void*)0,(void*)0,&g_2596,&g_2596,&g_2596,(void*)0}};
static uint16_t g_2609 = 65530UL;
static uint32_t *g_2621[3] = {&g_83,&g_83,&g_83};
static uint32_t **g_2620 = &g_2621[1];
static uint32_t ***g_2619 = &g_2620;
static uint32_t ***g_2623 = (void*)0;
static int64_t ****g_2901 = &g_1833;
static volatile uint64_t g_2924[9][8] = {{18446744073709551608UL,9UL,9UL,18446744073709551608UL,0xFD4867F991E4ACC7LL,18446744073709551608UL,9UL,9UL},{9UL,0xFD4867F991E4ACC7LL,9UL,9UL,0xFD4867F991E4ACC7LL,9UL,0xFD4867F991E4ACC7LL,9UL},{18446744073709551608UL,0xFD4867F991E4ACC7LL,18446744073709551608UL,9UL,9UL,18446744073709551608UL,0xFD4867F991E4ACC7LL,18446744073709551608UL},{18446744073709551610UL,9UL,9UL,9UL,18446744073709551610UL,18446744073709551610UL,9UL,9UL},{18446744073709551610UL,18446744073709551610UL,9UL,9UL,9UL,18446744073709551610UL,18446744073709551610UL,9UL},{18446744073709551608UL,9UL,9UL,18446744073709551608UL,0xFD4867F991E4ACC7LL,18446744073709551608UL,9UL,9UL},{18446744073709551608UL,18446744073709551610UL,0xFD4867F991E4ACC7LL,0xFD4867F991E4ACC7LL,18446744073709551610UL,18446744073709551608UL,18446744073709551610UL,0xFD4867F991E4ACC7LL},{9UL,18446744073709551610UL,9UL,18446744073709551608UL,18446744073709551608UL,9UL,18446744073709551610UL,9UL},{9UL,18446744073709551608UL,0xFD4867F991E4ACC7LL,18446744073709551608UL,9UL,9UL,18446744073709551608UL,0xFD4867F991E4ACC7LL}};
static const int16_t g_2936 = 0x3CC9L;
static volatile uint8_t g_2968 = 0x3FL;/* VOLATILE GLOBAL g_2968 */
static int32_t ***g_3000[9][6][4] = {{{&g_1181[1],&g_74,&g_74,(void*)0},{&g_74,&g_1181[0],&g_1181[1],&g_74},{&g_1181[0],&g_74,&g_1181[0],(void*)0},{&g_1181[0],&g_74,&g_1181[1],&g_74},{&g_74,(void*)0,&g_74,&g_74},{&g_1181[1],&g_1181[0],&g_1181[0],&g_1181[1]}},{{&g_74,&g_74,(void*)0,&g_74},{&g_74,&g_1181[1],&g_74,&g_1181[0]},{(void*)0,&g_1181[0],&g_74,&g_1181[0]},{&g_74,&g_1181[1],&g_1181[0],&g_74},{(void*)0,&g_74,&g_74,&g_1181[1]},{&g_1181[1],&g_1181[0],&g_1181[1],&g_74}},{{&g_1181[1],(void*)0,&g_74,&g_74},{&g_74,&g_74,&g_74,(void*)0},{&g_1181[0],&g_74,&g_74,&g_74},{&g_74,&g_1181[0],&g_74,(void*)0},{&g_1181[1],&g_74,&g_1181[1],&g_1181[1]},{&g_1181[1],&g_1181[1],&g_74,&g_1181[1]}},{{(void*)0,&g_74,&g_1181[0],&g_74},{&g_74,&g_74,&g_74,&g_1181[0]},{(void*)0,&g_74,&g_74,&g_74},{&g_74,&g_74,(void*)0,&g_1181[1]},{&g_74,&g_1181[1],&g_1181[0],&g_1181[1]},{&g_1181[1],&g_74,&g_74,(void*)0}},{{&g_74,&g_1181[0],&g_1181[1],&g_74},{&g_1181[0],&g_74,&g_1181[0],(void*)0},{&g_1181[0],&g_74,&g_1181[1],&g_74},{&g_74,(void*)0,&g_74,&g_74},{&g_1181[1],&g_1181[0],&g_1181[0],&g_1181[1]},{&g_74,&g_74,(void*)0,&g_74}},{{&g_74,&g_1181[1],&g_74,&g_1181[0]},{(void*)0,&g_1181[0],&g_74,&g_1181[0]},{&g_74,&g_1181[1],&g_1181[0],&g_74},{(void*)0,&g_74,&g_74,&g_1181[1]},{&g_1181[1],&g_1181[0],&g_1181[1],&g_74},{&g_1181[1],(void*)0,&g_74,&g_74}},{{&g_74,&g_74,&g_74,(void*)0},{&g_1181[0],&g_74,&g_74,&g_74},{&g_74,&g_1181[0],&g_74,(void*)0},{&g_1181[1],&g_74,&g_1181[1],&g_1181[1]},{&g_1181[1],&g_1181[1],&g_74,&g_1181[1]},{(void*)0,&g_74,&g_74,&g_1181[0]}},{{&g_1181[1],&g_74,&g_74,&g_74},{&g_74,&g_74,&g_1181[1],&g_1181[0]},{&g_74,&g_74,&g_74,&g_1181[1]},{&g_1181[0],&g_1181[1],(void*)0,&g_1181[1]},{&g_1181[1],&g_1181[0],&g_1181[0],&g_1181[1]},{(void*)0,&g_74,&g_74,&g_1181[1]}},{{(void*)0,&g_74,&g_74,&g_74},{(void*)0,&g_1181[1],&g_74,&g_74},{(void*)0,&g_74,&g_1181[0],&g_1181[0]},{&g_1181[1],(void*)0,(void*)0,&g_1181[1]},{&g_1181[0],&g_1181[0],&g_74,(void*)0},{&g_74,&g_74,&g_1181[1],(void*)0}}};
static int32_t ****g_2999 = &g_3000[2][4][1];
static int32_t *****g_2998 = &g_2999;
static int32_t * const *g_3013[2][1][9] = {{{(void*)0,(void*)0,&g_1000[8][2][7],(void*)0,(void*)0,&g_1000[8][2][7],(void*)0,(void*)0,&g_1000[8][2][7]}},{{&g_1000[0][0][1],&g_1000[0][0][1],&g_75[6][1],&g_1000[0][0][1],&g_1000[0][0][1],&g_75[6][1],&g_1000[0][0][1],&g_1000[0][0][1],&g_75[6][1]}}};
static int32_t * const *g_3201 = (void*)0;
static volatile uint32_t g_3346 = 4294967295UL;/* VOLATILE GLOBAL g_3346 */
static volatile uint8_t g_3356 = 0x47L;/* VOLATILE GLOBAL g_3356 */
static int16_t *g_3405 = &g_1062;
static int16_t **g_3404 = &g_3405;
static int16_t *** volatile g_3403[5][9] = {{&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404},{&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404},{&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,(void*)0,&g_3404,&g_3404,&g_3404},{&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404},{&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,(void*)0,&g_3404,&g_3404,&g_3404}};
static int16_t *** volatile * volatile g_3402 = &g_3403[1][3];/* VOLATILE GLOBAL g_3402 */
static int64_t g_3439 = 1L;
static int64_t g_3445 = (-1L);
static const int8_t *g_3480[6] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
static const int8_t **g_3479 = &g_3480[5];
static const uint64_t * volatile * volatile ** volatile g_3500[10] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
static uint16_t *g_3508[2][7] = {{&g_2609,&g_196,&g_2357,&g_196,&g_196,&g_2357,&g_196},{&g_2609,&g_196,&g_2357,&g_196,&g_196,&g_2357,&g_196}};
static uint16_t ** const g_3507 = &g_3508[1][0];
static uint16_t ** const *g_3506 = &g_3507;
static uint8_t *g_3514 = &g_214;
static uint8_t **g_3513 = &g_3514;
static uint8_t ***g_3512[4] = {&g_3513,&g_3513,&g_3513,&g_3513};
static uint8_t ****g_3511[8] = {&g_3512[1],&g_3512[1],&g_3512[1],&g_3512[1],&g_3512[1],&g_3512[1],&g_3512[1],&g_3512[1]};
static uint32_t **** const  volatile g_3520 = &g_2619;/* VOLATILE GLOBAL g_3520 */
static int16_t g_3607 = 0x019AL;
static uint8_t g_3608 = 0x10L;
static uint32_t *g_3622 = &g_1325[0][1];
static const int32_t g_3763 = 0x6DB0B4FDL;
static int64_t *****g_3766 = &g_2901;
static uint16_t g_3872 = 2UL;
static int8_t ***g_3899 = (void*)0;
static int8_t ****g_3898 = &g_3899;
static const int32_t *g_3903[10][2][8] = {{{&g_3763,&g_820[2][0],&g_820[8][0],&g_1294,&g_274,&g_3763,&g_1294,&g_820[6][0]},{&g_11,&g_1294,&g_11,(void*)0,&g_274,&g_274,&g_274,&g_820[2][0]}},{{&g_274,&g_274,&g_274,&g_820[2][0],&g_11,&g_820[2][0],(void*)0,&g_1294},{&g_274,&g_820[0][0],&g_820[2][0],&g_820[2][0],(void*)0,&g_1294,&g_820[2][0],&g_11}},{{&g_820[2][0],&g_3763,&g_820[6][0],&g_274,&g_11,&g_3763,&g_820[2][0],&g_274},{&g_3763,(void*)0,&g_820[0][0],&g_820[2][0],&g_820[2][0],(void*)0,&g_820[2][0],&g_820[2][0]}},{{&g_820[2][0],&g_274,&g_820[2][0],&g_820[2][0],&g_274,&g_820[2][0],(void*)0,&g_274},{&g_820[2][0],&g_1294,&g_3763,(void*)0,&g_274,&g_274,&g_274,&g_820[2][0]}},{{(void*)0,&g_3763,&g_274,(void*)0,&g_820[2][0],&g_820[1][0],(void*)0,&g_274},{&g_11,&g_820[2][0],&g_11,&g_820[2][0],&g_820[2][0],&g_1294,&g_274,&g_820[2][0]}},{{&g_3763,&g_820[8][0],&g_820[1][0],&g_820[2][0],&g_820[2][0],&g_820[2][0],&g_3763,&g_274},{&g_274,&g_820[9][0],&g_3763,&g_820[2][0],(void*)0,&g_820[2][0],&g_820[2][0],(void*)0}},{{&g_274,&g_820[2][0],&g_820[2][0],&g_274,(void*)0,&g_274,&g_820[2][0],&g_11},{&g_274,&g_1294,&g_3763,&g_274,&g_1294,&g_3763,&g_1294,&g_274}},{{(void*)0,&g_11,(void*)0,&g_820[6][0],&g_274,&g_274,&g_274,&g_1294},{&g_1294,&g_820[2][0],&g_820[6][0],&g_274,&g_274,(void*)0,&g_274,&g_274}},{{&g_1294,&g_1294,&g_820[2][0],&g_1294,&g_274,&g_274,&g_3763,&g_1294},{(void*)0,&g_274,&g_1294,&g_11,&g_1294,&g_820[6][0],&g_274,(void*)0}},{{&g_274,&g_274,&g_820[8][0],&g_820[2][0],(void*)0,&g_820[2][0],&g_820[1][0],(void*)0},{&g_274,&g_3763,(void*)0,(void*)0,(void*)0,&g_820[2][0],&g_1294,&g_11}}};
static const int32_t ** volatile g_3902 = &g_3903[6][1][3];/* VOLATILE GLOBAL g_3902 */
static int8_t * const ***g_3944 = (void*)0;
static int8_t * const ****g_3943 = &g_3944;
static uint64_t g_4013 = 0UL;
static int16_t g_4059 = 0xEC1AL;
static volatile int32_t *g_4084 = (void*)0;
static volatile int32_t **g_4083[5] = {&g_4084,&g_4084,&g_4084,&g_4084,&g_4084};
static uint32_t g_4609 = 18446744073709551607UL;
static uint16_t *** volatile g_4632 = &g_2522;/* VOLATILE GLOBAL g_4632 */
static volatile int16_t * const  volatile *g_4685 = &g_1217;
static volatile int16_t * const  volatile **g_4684 = &g_4685;
static volatile int16_t * const  volatile ***g_4683 = &g_4684;
static uint32_t g_4776[1][10] = {{0x7F213EFBL,0x7F213EFBL,0x7F213EFBL,0x7F213EFBL,0x7F213EFBL,0x7F213EFBL,0x7F213EFBL,0x7F213EFBL,0x7F213EFBL,0x7F213EFBL}};
static int32_t ** volatile g_4828[4][10] = {{&g_75[6][1],&g_75[1][1],(void*)0,(void*)0,&g_75[1][1],&g_75[6][1],&g_75[1][1],(void*)0,(void*)0,&g_75[1][1]},{&g_75[6][1],&g_75[1][1],(void*)0,(void*)0,&g_75[1][1],&g_75[6][1],&g_75[1][1],(void*)0,(void*)0,&g_75[1][1]},{&g_75[6][1],&g_75[1][1],(void*)0,(void*)0,&g_75[1][1],&g_75[6][1],&g_75[1][1],(void*)0,(void*)0,&g_75[1][1]},{&g_75[6][1],&g_75[1][1],(void*)0,(void*)0,&g_75[1][1],&g_75[6][1],&g_75[1][1],(void*)0,(void*)0,&g_75[1][1]}};
static int16_t g_4968 = 1L;
static volatile int64_t g_5054 = 0x9DD902958060DA5CLL;/* VOLATILE GLOBAL g_5054 */
static uint32_t g_5074 = 0xB3C40E38L;
static uint16_t ***g_5180 = &g_2522;
static uint16_t ****g_5179[3] = {&g_5180,&g_5180,&g_5180};
static uint16_t *****g_5178 = &g_5179[0];
static uint8_t g_5222 = 0x01L;
static uint32_t **g_5239 = &g_2621[1];
static volatile int16_t g_5282 = 0xB4A8L;/* VOLATILE GLOBAL g_5282 */
static int32_t *** volatile g_5291[3][1][4] = {{{&g_74,&g_74,&g_74,&g_74}},{{&g_74,&g_74,&g_74,&g_74}},{{&g_74,&g_74,&g_74,&g_74}}};
static int32_t *** volatile g_5293[8] = {&g_74,(void*)0,&g_74,&g_74,(void*)0,&g_74,&g_74,(void*)0};
static int32_t *** volatile g_5294 = &g_74;/* VOLATILE GLOBAL g_5294 */
static uint64_t g_5343[5] = {0x1D8DDA0222E74278LL,0x1D8DDA0222E74278LL,0x1D8DDA0222E74278LL,0x1D8DDA0222E74278LL,0x1D8DDA0222E74278LL};
static volatile int8_t g_5359[3] = {0x45L,0x45L,0x45L};
static uint64_t g_5393[3][4][3] = {{{18446744073709551615UL,18446744073709551615UL,18446744073709551615UL},{18446744073709551615UL,18446744073709551615UL,18446744073709551615UL},{18446744073709551615UL,18446744073709551615UL,18446744073709551615UL},{18446744073709551615UL,18446744073709551615UL,18446744073709551615UL}},{{18446744073709551615UL,18446744073709551615UL,18446744073709551615UL},{18446744073709551615UL,18446744073709551615UL,18446744073709551615UL},{18446744073709551615UL,18446744073709551615UL,18446744073709551615UL},{18446744073709551615UL,18446744073709551615UL,18446744073709551615UL}},{{18446744073709551615UL,18446744073709551615UL,18446744073709551615UL},{18446744073709551615UL,18446744073709551615UL,18446744073709551615UL},{18446744073709551615UL,18446744073709551615UL,18446744073709551615UL},{18446744073709551615UL,18446744073709551615UL,18446744073709551615UL}}};
static uint8_t g_5488[2][6] = {{0x14L,0x88L,0x88L,0x14L,0UL,0x14L},{0x14L,0UL,0x14L,0x88L,0x88L,0x14L}};
static volatile uint32_t g_5492[10] = {0x463A82EAL,0x463A82EAL,0x463A82EAL,0x463A82EAL,0x463A82EAL,0x463A82EAL,0x463A82EAL,0x463A82EAL,0x463A82EAL,0x463A82EAL};
static uint8_t *g_5562 = &g_1608;
static int64_t **g_5586 = &g_210;
static int64_t *** const g_5585 = &g_5586;
static int64_t *** const *g_5584[6][2] = {{&g_5585,&g_5585},{&g_5585,&g_5585},{&g_5585,&g_5585},{&g_5585,&g_5585},{&g_5585,&g_5585},{&g_5585,&g_5585}};
static uint32_t *****g_5598 = &g_2269;
static volatile int8_t g_5604 = 0x81L;/* VOLATILE GLOBAL g_5604 */
static uint64_t g_5664 = 0xB68F40C2EE05E3BALL;
static int32_t *g_5682 = &g_1527;
static int8_t g_5697 = (-7L);
static const int32_t g_5703[2][10] = {{0x11C65A80L,0xF6BFE6DDL,0x95DA3C0BL,0x11C65A80L,0x95DA3C0BL,0xF6BFE6DDL,0x11C65A80L,3L,3L,0x11C65A80L},{3L,0x07ABA584L,0x95DA3C0BL,0x95DA3C0BL,0x07ABA584L,3L,0xF6BFE6DDL,0x07ABA584L,0xF6BFE6DDL,3L}};
static uint32_t **** volatile g_5705 = &g_2623;/* VOLATILE GLOBAL g_5705 */
static const uint32_t *g_5748 = &g_1325[0][1];
static const uint32_t **g_5747 = &g_5748;
static int32_t ***g_5758 = (void*)0;
static int32_t **** volatile g_5757 = &g_5758;/* VOLATILE GLOBAL g_5757 */
static uint64_t * const *g_5786 = &g_1972[1];
static uint64_t * const **g_5785 = &g_5786;
static uint64_t *** const g_5809 = (void*)0;
static uint64_t *** const *g_5808 = &g_5809;
static uint64_t *** const ** volatile g_5807[1][7] = {{&g_5808,&g_5808,(void*)0,&g_5808,&g_5808,(void*)0,&g_5808}};
static uint64_t *** const ** volatile g_5810 = &g_5808;/* VOLATILE GLOBAL g_5810 */
static uint32_t ** const *g_5819 = (void*)0;
static uint32_t ** const **g_5818 = &g_5819;
static int8_t g_5824 = 0x41L;
static int8_t ** const **g_5898 = (void*)0;
static int8_t ** const *** volatile g_5897 = &g_5898;/* VOLATILE GLOBAL g_5897 */
static uint64_t g_5965 = 18446744073709551610UL;
static int16_t *g_5985[9][8][3] = {{{&g_4968,&g_1528,&g_4968},{&g_1528,&g_3607,&g_4968},{(void*)0,&g_1062,&g_4968},{&g_185,&g_960,&g_1528},{&g_1062,(void*)0,&g_4059},{&g_185,&g_1062,(void*)0},{(void*)0,&g_1062,&g_185},{&g_1528,&g_4968,&g_960}},{{&g_4968,&g_3607,&g_3607},{&g_4059,&g_185,&g_1528},{(void*)0,(void*)0,&g_4968},{&g_4968,(void*)0,(void*)0},{(void*)0,&g_1062,&g_1062},{&g_3607,(void*)0,&g_3607},{&g_1062,(void*)0,(void*)0},{(void*)0,&g_185,(void*)0}},{{&g_1062,&g_3607,&g_185},{&g_185,&g_4968,&g_4059},{&g_3607,&g_1062,(void*)0},{&g_4059,&g_1062,&g_185},{&g_960,(void*)0,&g_4968},{&g_960,&g_960,&g_185},{&g_3607,&g_1062,(void*)0},{&g_185,&g_3607,&g_4059}},{{&g_1062,&g_1528,&g_1528},{(void*)0,&g_4968,(void*)0},{&g_4968,&g_3607,(void*)0},{&g_960,&g_960,(void*)0},{&g_185,&g_960,(void*)0},{&g_3607,&g_4968,&g_1062},{&g_185,&g_3607,&g_4059},{&g_960,&g_960,&g_1062}},{{&g_4968,&g_1062,&g_4968},{(void*)0,&g_3607,(void*)0},{&g_960,&g_1528,&g_960},{&g_185,&g_4968,(void*)0},{&g_1062,&g_1528,&g_1062},{&g_3607,&g_960,&g_185},{&g_185,&g_1528,&g_3607},{&g_3607,&g_4968,(void*)0}},{{(void*)0,&g_1528,&g_4059},{&g_4059,&g_3607,&g_960},{&g_1062,&g_1062,&g_960},{&g_4968,&g_960,&g_185},{&g_960,&g_3607,(void*)0},{&g_1528,&g_4968,(void*)0},{(void*)0,&g_960,(void*)0},{&g_1528,&g_960,&g_185}},{{&g_1062,&g_3607,&g_960},{&g_3607,&g_4968,&g_960},{&g_4059,&g_1062,&g_4059},{&g_3607,&g_185,(void*)0},{&g_3607,&g_1062,&g_3607},{&g_960,&g_185,&g_185},{&g_960,(void*)0,&g_1062},{&g_960,(void*)0,(void*)0}},{{&g_3607,(void*)0,&g_960},{&g_3607,&g_960,(void*)0},{&g_4059,&g_4968,&g_4968},{&g_3607,&g_4059,&g_1062},{&g_1062,(void*)0,&g_4059},{&g_1528,&g_3607,&g_1062},{(void*)0,&g_1062,(void*)0},{&g_1528,&g_3607,(void*)0}},{{&g_960,(void*)0,(void*)0},{&g_4968,&g_4059,(void*)0},{&g_1062,&g_4968,&g_1528},{&g_4059,&g_960,&g_3607},{(void*)0,(void*)0,&g_1528},{&g_3607,(void*)0,&g_1528},{&g_185,(void*)0,&g_4059},{&g_3607,&g_185,&g_1528}}};


/* --- FORWARD DECLARATIONS --- */
static uint8_t  func_1(void);
static int32_t  func_2(uint8_t  p_3);
static int8_t  func_5(uint32_t  p_6);
static int8_t  func_12(int32_t * p_13, int32_t * p_14, uint64_t  p_15, int32_t * p_16, int8_t  p_17);
static int32_t * func_22(int16_t  p_23);
static int64_t  func_27(int32_t * const * p_28, int32_t ** p_29);
static int32_t * const * func_30(uint32_t  p_31, int32_t  p_32, uint32_t  p_33);
static uint32_t  func_34(int32_t * const  p_35, uint32_t  p_36, const int32_t * p_37, int32_t  p_38);
static int16_t  func_39(int64_t  p_40, int32_t ** p_41, uint64_t  p_42, int16_t  p_43, int32_t ** p_44);
static int16_t  func_45(int8_t  p_46);


/* --- FUNCTIONS --- */
/* ------------------------------------------ */
/* 
 * reads : g_4 g_11 g_74 g_80 g_75 g_106 g_83 g_122 g_111 g_172 g_185 g_188 g_200 g_214 g_184 g_789 g_1217 g_1218 g_1216 g_1254 g_1266 g_778 g_779 g_496 g_485 g_275 g_276 g_1255 g_1325 g_375 g_376 g_1267 g_1358 g_210 g_274 g_1533 g_1294 g_1546 g_1547 g_492 g_490 g_1527 g_960 g_486 g_1062 g_692 g_693 g_1324 g_1836 g_1608 g_1627 g_1878 g_820 g_1887 g_484 g_487 g_2269 g_2270 g_1385 g_222 g_2998 g_2999 g_1545 g_1973 g_2619 g_2620 g_2621 g_3346 g_3356 g_173 g_174 g_3402 g_3404 g_3405 g_3445 g_374 g_2609 g_3479 g_3500 g_3511 g_3520 g_3439 g_175 g_2435 g_2436 g_3607 g_3608 g_3513 g_3514 g_1534 g_4013 g_4059 g_3622 g_2901 g_1833 g_4083 g_3000 g_2357 g_1972 g_3903 g_483 g_4968 g_695 g_1419 g_3902 g_4685 g_5054 g_5074 g_3403 g_4683 g_4684 g_3766 g_5178 g_5222 g_5239 g_5282 g_5294 g_5343 g_1888 g_1889 g_999 g_5747 g_5757 g_5785 g_5810 g_5818 g_5824 g_5786 g_5897 g_5898 g_5562 g_5965 g_5598
 * writes: g_11 g_80 g_83 g_4 g_106 g_185 g_196 g_200 g_209 g_222 g_789 g_184 g_111 g_1324 g_960 g_75 g_483 g_1350 g_276 g_1294 g_492 g_490 g_1527 g_486 g_1062 g_376 g_1833 g_1608 g_1000 g_1887 g_210 g_496 g_1836 g_2999 g_1325 g_3346 g_3356 g_820 g_2621 g_2609 g_3479 g_3506 g_3511 g_2619 g_3439 g_214 g_3622 g_1521 g_330 g_2270 g_3608 g_3943 g_4013 g_4059 g_2357 g_484 g_3903 g_3445 g_3607 g_694 g_1419 g_175 g_485 g_2901 g_122 g_2620 g_1181 g_74 g_3872 g_5758 g_5785 g_5808 g_5818 g_5898 g_3000 g_5965 g_5074 g_5985
 */
static uint8_t  func_1(void)
{ /* block id: 0 */
    uint16_t l_5064 = 65533UL;
    int32_t l_5065[9] = {1L,0L,0L,1L,0L,0L,1L,0L,0L};
    uint64_t l_5083 = 0x0781BCDFDAE48BA1LL;
    int64_t ****l_5164 = (void*)0;
    int64_t l_5248 = 0x70EC23ED62D5E7A0LL;
    int8_t l_5271 = (-2L);
    uint8_t **l_5288 = &g_3514;
    int32_t l_5289 = 2L;
    int32_t **l_5290 = &g_75[4][5];
    int32_t *l_5314 = &g_1527;
    uint8_t l_5319 = 8UL;
    uint64_t l_5334 = 0x98C2FE231090981DLL;
    int16_t l_5344[1];
    uint64_t l_5346 = 18446744073709551615UL;
    uint64_t **l_5461 = &g_1972[1];
    uint64_t *** const l_5460 = &l_5461;
    uint32_t l_5468 = 0x041B6106L;
    uint8_t l_5475 = 1UL;
    int16_t **l_5500[7];
    uint8_t l_5524[1];
    uint64_t **l_5547 = &g_1973;
    int16_t l_5551 = (-1L);
    int32_t l_5557 = (-5L);
    uint64_t l_5570 = 0xAAD7209332F5A286LL;
    uint32_t *****l_5599 = &g_2269;
    int64_t l_5629 = 1L;
    uint32_t l_5644 = 0x3B64467FL;
    uint64_t l_5729 = 0x7EE344A8594E02E5LL;
    int32_t *l_5733 = &g_820[2][0];
    const uint64_t ***l_5784 = (void*)0;
    int16_t ***l_5835[8][9][2] = {{{(void*)0,&l_5500[4]},{(void*)0,&l_5500[4]},{&l_5500[2],&l_5500[2]},{&l_5500[2],&l_5500[4]},{&g_3404,(void*)0},{&g_3404,&l_5500[2]},{&l_5500[2],&l_5500[2]},{(void*)0,(void*)0},{&l_5500[2],&g_3404}},{{&g_3404,&l_5500[4]},{(void*)0,&g_3404},{&g_3404,(void*)0},{&l_5500[4],&l_5500[2]},{&l_5500[4],(void*)0},{&g_3404,&g_3404},{(void*)0,&l_5500[4]},{&g_3404,&g_3404},{&l_5500[2],(void*)0}},{{(void*)0,&l_5500[2]},{&l_5500[2],&l_5500[2]},{(void*)0,&l_5500[2]},{(void*)0,(void*)0},{&l_5500[4],&l_5500[2]},{&l_5500[2],&l_5500[2]},{&l_5500[2],(void*)0},{&g_3404,&l_5500[2]},{(void*)0,(void*)0}},{{&l_5500[2],&g_3404},{&l_5500[2],(void*)0},{&l_5500[6],&l_5500[2]},{&g_3404,&l_5500[2]},{&l_5500[4],&l_5500[2]},{&g_3404,&l_5500[4]},{&l_5500[2],&l_5500[5]},{&l_5500[2],&l_5500[2]},{&g_3404,&g_3404}},{{&l_5500[2],&l_5500[2]},{&l_5500[0],&l_5500[2]},{&l_5500[6],&l_5500[2]},{(void*)0,&g_3404},{&l_5500[2],&l_5500[0]},{(void*)0,&l_5500[4]},{&l_5500[2],(void*)0},{&l_5500[2],&l_5500[2]},{&l_5500[2],&l_5500[2]}},{{&l_5500[2],(void*)0},{&l_5500[2],&l_5500[4]},{(void*)0,&l_5500[0]},{&l_5500[2],&g_3404},{(void*)0,&l_5500[2]},{&l_5500[6],&l_5500[2]},{&l_5500[0],&l_5500[2]},{&l_5500[2],&g_3404},{&g_3404,&l_5500[2]}},{{&l_5500[2],&l_5500[5]},{&l_5500[2],&l_5500[4]},{&g_3404,&l_5500[2]},{&l_5500[4],&l_5500[2]},{&g_3404,&l_5500[2]},{&l_5500[6],(void*)0},{&l_5500[2],&g_3404},{&l_5500[2],(void*)0},{(void*)0,&l_5500[2]}},{{&g_3404,(void*)0},{&l_5500[2],&l_5500[2]},{&l_5500[2],&l_5500[2]},{&l_5500[4],(void*)0},{(void*)0,&l_5500[2]},{(void*)0,&g_3404},{&l_5500[2],&g_3404},{&g_3404,&g_3404},{&l_5500[6],&l_5500[2]}}};
    int16_t ****l_5834[4];
    uint64_t l_5882[2][3][4] = {{{9UL,0x0587FF304EB35561LL,9UL,0x0587FF304EB35561LL},{9UL,0x0587FF304EB35561LL,9UL,0x0587FF304EB35561LL},{9UL,0x0587FF304EB35561LL,9UL,0x0587FF304EB35561LL}},{{9UL,0x0587FF304EB35561LL,9UL,0x0587FF304EB35561LL},{9UL,0x0587FF304EB35561LL,9UL,0x0587FF304EB35561LL},{9UL,0x0587FF304EB35561LL,9UL,0x0587FF304EB35561LL}}};
    const uint32_t l_5891 = 0xE49EA51AL;
    int32_t ****l_5921 = &g_3000[2][4][1];
    uint32_t ****l_5928 = (void*)0;
    uint32_t l_5948 = 0xC9135CE5L;
    int32_t l_5957 = 0x31C9F43AL;
    int32_t l_5963 = 0x65FAC883L;
    int16_t *l_5986 = (void*)0;
    int8_t l_5988 = (-7L);
    uint64_t l_5992 = 18446744073709551614UL;
    uint16_t l_5993[3];
    int i, j, k;
    for (i = 0; i < 1; i++)
        l_5344[i] = 0x4ED6L;
    for (i = 0; i < 7; i++)
        l_5500[i] = &g_3405;
    for (i = 0; i < 1; i++)
        l_5524[i] = 0x03L;
    for (i = 0; i < 4; i++)
        l_5834[i] = &l_5835[7][5][1];
    for (i = 0; i < 3; i++)
        l_5993[i] = 65535UL;
    l_5064 &= func_2(g_4);
    if ((l_5065[3] = l_5064))
    { /* block id: 2204 */
        const uint8_t l_5073 = 249UL;
        uint8_t l_5097 = 0UL;
        uint64_t l_5098 = 18446744073709551615UL;
        uint8_t ***l_5127[8][10] = {{(void*)0,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,(void*)0,&g_3513,(void*)0,&g_3513},{&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513},{&g_3513,&g_3513,&g_3513,&g_3513,(void*)0,&g_3513,(void*)0,&g_3513,&g_3513,&g_3513},{&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513},{(void*)0,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,(void*)0,&g_3513,(void*)0,&g_3513},{&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513},{&g_3513,&g_3513,&g_3513,&g_3513,(void*)0,&g_3513,(void*)0,&g_3513,&g_3513,&g_3513},{&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513}};
        uint32_t l_5130 = 0x3D7D8393L;
        uint64_t ***l_5132 = (void*)0;
        uint64_t ****l_5131 = &l_5132;
        int8_t l_5137 = 0xF7L;
        int16_t l_5147 = 0xB9DDL;
        int32_t ****l_5161 = (void*)0;
        int32_t l_5168[9] = {0L,0xFA5E3158L,0L,0xFA5E3158L,0L,0xFA5E3158L,0L,0xFA5E3158L,0L};
        int32_t l_5177 = 0x9D0BFD73L;
        uint16_t *****l_5181 = &g_5179[0];
        uint32_t l_5192 = 4294967295UL;
        uint64_t l_5360 = 18446744073709551615UL;
        int32_t *l_5381[8] = {&g_274,&g_274,&g_274,&g_274,&g_274,&g_274,&g_274,&g_274};
        int16_t l_5394 = 0x3958L;
        uint32_t l_5438 = 5UL;
        uint16_t l_5465 = 0xC71EL;
        int16_t **l_5498 = (void*)0;
        int32_t l_5511[7][2][5] = {{{1L,0x457E9DF8L,1L,0x9F52FB85L,3L},{(-1L),0x457E9DF8L,1L,1L,0L}},{{0L,0x8236563BL,0xF7075990L,0xF7D71628L,(-1L)},{0x27CF6206L,0L,1L,0L,0x27CF6206L}},{{0xCCCC8DB3L,1L,1L,0L,0xF7D71628L},{0x726A75F4L,0xCCCC8DB3L,0x9F52FB85L,0xF7D71628L,(-8L)}},{{1L,1L,0xF7D71628L,1L,0xF7D71628L},{0xF7D71628L,0xF7D71628L,0x457E9DF8L,0x9F52FB85L,0x27CF6206L}},{{0xF7D71628L,0xE2594285L,0x27CF6206L,0xF7075990L,(-1L)},{1L,0L,(-8L),0x8236563BL,0L}},{{0x726A75F4L,0xE2594285L,0xE2594285L,0x726A75F4L,3L},{0xCCCC8DB3L,0xF7D71628L,0xE2594285L,0x27CF6206L,0xF7075990L}},{{0x27CF6206L,1L,(-8L),1L,0xE2594285L},{0L,0xCCCC8DB3L,0x27CF6206L,0x27CF6206L,0xCCCC8DB3L}}};
        uint32_t l_5560 = 0xEBDDECDBL;
        int16_t l_5597 = (-1L);
        uint32_t l_5622 = 1UL;
        uint32_t ***l_5630 = &g_1385;
        int16_t ***l_5646[9];
        int16_t ****l_5645 = &l_5646[2];
        int64_t l_5696[8][10][3] = {{{(-4L),0L,2L},{0x3FBE19C7A75D8EB0LL,0x8054E041190631F7LL,9L},{0x9A6115CD897E8864LL,0x02A816AC6637FD76LL,0xA2AA627E084A5006LL},{1L,9L,0x6806EA8C141ABB78LL},{0x8FF6950E1C669492LL,0xBD505D1EF6F270B4LL,0xC0386D2C41B97688LL},{0x0384A8DAB615F143LL,0xFF2DC1619F81F6D1LL,1L},{0x406FA0632347885ELL,(-10L),9L},{0x6806EA8C141ABB78LL,0x691301809E76A97DLL,0x4795FCB86705E154LL},{0x03AA0281F260770DLL,0x5F2814515721B801LL,0x94F5D15C779FB6D4LL},{7L,0x430375E789E478BELL,(-1L)}},{{(-1L),(-8L),0xB9FCE43231075CA8LL},{9L,1L,0xF13731A27F1E4888LL},{0L,0xEF5CEAC8FBC51B23LL,9L},{0xF13731A27F1E4888LL,1L,(-6L)},{0xEF5CEAC8FBC51B23LL,0x72079E63B87FB4F9LL,0xA9C5A221378858DALL},{0x99FEE9742BC0723FLL,3L,0xD8992E58FA5B4361LL},{1L,1L,1L},{0x3EEE875651A39834LL,2L,1L},{1L,0x16644EA32D136C72LL,(-5L)},{0xF36AD14E4E538020LL,(-9L),0x430375E789E478BELL}},{{0L,0xA2AA627E084A5006LL,0L},{0xD8992E58FA5B4361LL,(-9L),0x3FBE19C7A75D8EB0LL},{(-1L),0x16644EA32D136C72LL,0xEC4D137A7E687651LL},{(-1L),2L,9L},{0xEC76C38B618649E0LL,1L,(-8L)},{2L,3L,(-1L)},{0x6C6528283825896ELL,0x72079E63B87FB4F9LL,1L},{0x3B7DC723B4A377F7LL,1L,0x7CAAE6F9E8F06CA8LL},{0x16644EA32D136C72LL,0xEF5CEAC8FBC51B23LL,3L},{7L,0x9F3F948062ED9BD5LL,3L}},{{(-1L),2L,(-5L)},{1L,0x7CAAE6F9E8F06CA8LL,0xD69FF2338E0C7861LL},{0x6C6528283825896ELL,0L,0xB2345777B37B2261LL},{0x206AE630EF9A929BLL,0xF36AD14E4E538020LL,0L},{0x951D8A5B350E6952LL,(-1L),0xC36616014C564B46LL},{0x7CAAE6F9E8F06CA8LL,0x430375E789E478BELL,0xAF278935C9CA2984LL},{0xEC4D137A7E687651LL,1L,0xEC4D137A7E687651LL},{(-9L),0xD056CDFEA354CFC4LL,1L},{2L,(-1L),5L},{9L,1L,9L}},{{8L,0x94F5D15C779FB6D4LL,(-1L)},{9L,0x3AE2901843947D0CLL,8L},{2L,0x5F2814515721B801LL,0x16644EA32D136C72LL},{(-9L),0xC3F2DF9F6447774CLL,0x526FDF8AE968597ALL},{0xEC4D137A7E687651LL,0xA2AA627E084A5006LL,0x03AA0281F260770DLL},{0x7CAAE6F9E8F06CA8LL,1L,0x3B7DC723B4A377F7LL},{0x951D8A5B350E6952LL,(-8L),0L},{0x206AE630EF9A929BLL,0x3EEE875651A39834LL,0x9F3F948062ED9BD5LL},{0x6C6528283825896ELL,0xB2345777B37B2261LL,0x406FA0632347885ELL},{1L,0x3B7DC723B4A377F7LL,0x691301809E76A97DLL}},{{(-1L),0x02A816AC6637FD76LL,9L},{7L,(-1L),8L},{7L,0x8FF6950E1C669492LL,0xA2AA627E084A5006LL},{0x5DD3F176D5D5927FLL,0x206AE630EF9A929BLL,0xD42BD521C4C1557CLL},{4L,1L,0x8FF6950E1C669492LL},{0x54A719ABAD4EDE40LL,(-9L),2L},{0xC0386D2C41B97688LL,0xC0386D2C41B97688LL,(-10L)},{0x4795FCB86705E154LL,2L,1L},{(-1L),0L,4L},{0xF13731A27F1E4888LL,(-9L),0L}},{{5L,(-1L),4L},{(-1L),0x5DD3F176D5D5927FLL,1L},{0x16644EA32D136C72LL,0xEC4D137A7E687651LL,(-10L)},{1L,0xFD363BA97C00E1B0LL,2L},{0xB9FCE43231075CA8LL,(-1L),0x8FF6950E1C669492LL},{0xD69FF2338E0C7861LL,0xA078ED3E26B4F1CCLL,0xD42BD521C4C1557CLL},{(-10L),0x9A6115CD897E8864LL,0xA2AA627E084A5006LL},{0x99FEE9742BC0723FLL,0x54A719ABAD4EDE40LL,8L},{0x53537EC716D3DF77LL,(-1L),9L},{0x8054E041190631F7LL,0xAF278935C9CA2984LL,0x691301809E76A97DLL}},{{(-1L),0x72079E63B87FB4F9LL,0x406FA0632347885ELL},{2L,(-7L),0x9F3F948062ED9BD5LL},{0x406FA0632347885ELL,0x16644EA32D136C72LL,0L},{(-7L),0x152BA1D5352D7A50LL,0x3B7DC723B4A377F7LL},{3L,0x1FCF8B9219616CC9LL,0x03AA0281F260770DLL},{0L,0x526FDF8AE968597ALL,0x526FDF8AE968597ALL},{1L,1L,0x16644EA32D136C72LL},{1L,(-1L),8L},{0xBD505D1EF6F270B4LL,0xA9C5A221378858DALL,(-1L)},{0xD08BE6E37219F362LL,1L,9L}}};
        int i, j, k;
        for (i = 0; i < 9; i++)
            l_5646[i] = &l_5500[2];
lbl_5227:
        for (g_200 = 29; (g_200 < (-13)); g_200 = safe_sub_func_uint8_t_u_u(g_200, 3))
        { /* block id: 2207 */
            int8_t l_5072 = 1L;
            int32_t l_5088 = 0x8ECFB50DL;
            int32_t l_5129 = (-6L);
            if (((0x8D87L != (safe_mul_func_int32_t_s_s((safe_add_func_uint8_t_u_u(l_5072, (*g_3514))), ((l_5072 <= ((((l_5073 && g_5074) >= (0xFF86598AA67588CELL >= ((safe_mul_func_int8_t_s_s(l_5072, ((safe_mul_func_uint32_t_u_u((safe_sub_func_uint32_t_u_u((safe_mod_func_uint8_t_u_u(l_5072, l_5083)), l_5073)), l_5064)) != l_5073))) & l_5072))) != 255UL) && 0x3607FA4850F7AEEFLL)) | l_5072)))) , l_5073))
            { /* block id: 2208 */
                int16_t ***l_5089 = &g_3404;
                int16_t ***l_5091 = (void*)0;
                int16_t ****l_5090 = &l_5091;
                const int32_t l_5099 = 0xD5A91705L;
                uint8_t ***l_5128 = &g_3513;
                l_5088 |= (safe_mod_func_int8_t_s_s(l_5072, (safe_mul_func_int8_t_s_s(l_5065[3], l_5072))));
                l_5088 = ((l_5089 != ((*l_5090) = &g_3404)) ^ ((safe_add_func_uint32_t_u_u((0xE301L >= (l_5072 , (**g_4685))), (0UL < l_5073))) != (+(safe_add_func_uint32_t_u_u((((((***g_2619) |= (l_5065[2] & ((((*g_1973) = l_5097) >= l_5097) > 0L))) ^ l_5098) ^ (*g_3514)) && l_5065[0]), l_5099)))));
                (*g_275) ^= (l_5129 = (safe_mul_func_uint32_t_u_u((safe_div_func_int16_t_s_s(((safe_sub_func_uint32_t_u_u(l_5065[3], (((safe_lshift_func_int8_t_s_s(l_5099, ((***g_1545) |= (safe_lshift_func_uint32_t_u_u(0x52224F63L, l_5098))))) | (0xC6DAEB856A2DB564LL >= ((*g_1973) = ((safe_add_func_int8_t_s_s((safe_add_func_uint64_t_u_u((safe_mul_func_int32_t_s_s((safe_mod_func_uint16_t_u_u((safe_div_func_uint32_t_u_u(0x775EBC43L, (safe_div_func_uint64_t_u_u((((+((safe_add_func_uint64_t_u_u(l_5073, (safe_lshift_func_int8_t_s_s((l_5127[2][5] == l_5128), l_5099)))) ^ 0L)) , 0x542FL) || l_5064), 0xC8570E1FED90098FLL)))), l_5099)), (**g_2620))), 1L)), 0x17L)) == 0x4514BCB95002EB11LL)))) && l_5098))) > 0UL), (*g_3405))), l_5064)));
                l_5130 |= (0x7DEBL & l_5072);
            }
            else
            { /* block id: 2219 */
                return l_5072;
            }
        }
        (*g_74) = (void*)0;
        if ((0xF34DL <= (((void*)0 == l_5131) != ((safe_rshift_func_uint8_t_u_u((((safe_rshift_func_int8_t_s_s(l_5065[0], l_5137)) , (l_5064 == 9L)) ^ l_5097), (l_5083 == l_5065[7]))) <= l_5073))))
        { /* block id: 2224 */
            int32_t *l_5138 = (void*)0;
            int32_t * const * const *l_5160 = &g_3201;
            int32_t * const * const * const *l_5159 = &l_5160;
            uint8_t l_5169[6] = {0xC2L,0xC2L,0xC2L,0xC2L,0xC2L,0xC2L};
            uint64_t l_5174 = 0x868D8C52CB6EA205LL;
            int32_t l_5191 = 1L;
            int32_t l_5203 = 5L;
            uint64_t l_5204 = 7UL;
            int64_t l_5223[10][4] = {{0L,0L,0xF8CC9C9990480EBBLL,0xF8CC9C9990480EBBLL},{0L,0L,0xF8CC9C9990480EBBLL,0xF8CC9C9990480EBBLL},{0L,0L,0xF8CC9C9990480EBBLL,0xF8CC9C9990480EBBLL},{0L,0L,0xF8CC9C9990480EBBLL,0xF8CC9C9990480EBBLL},{0L,0L,0xF8CC9C9990480EBBLL,0xF8CC9C9990480EBBLL},{0L,0L,0xF8CC9C9990480EBBLL,0xF8CC9C9990480EBBLL},{0L,0L,0xF8CC9C9990480EBBLL,0xF8CC9C9990480EBBLL},{0L,0L,0xF8CC9C9990480EBBLL,0xF8CC9C9990480EBBLL},{0L,0L,0xF8CC9C9990480EBBLL,0xF8CC9C9990480EBBLL},{0L,0L,0xF8CC9C9990480EBBLL,0xF8CC9C9990480EBBLL}};
            uint16_t l_5244 = 0xD085L;
            uint32_t l_5250 = 0UL;
            uint32_t l_5274 = 0x70FF4F32L;
            uint8_t **l_5286[2][6] = {{&g_3514,&g_3514,&g_3514,&g_3514,&g_3514,&g_3514},{&g_3514,&g_3514,&g_3514,&g_3514,&g_3514,&g_3514}};
            int32_t l_5324 = 0x772F407EL;
            uint64_t l_5325 = 0xEFA0C50E9D27816BLL;
            int32_t l_5333 = 0xF682096DL;
            uint8_t l_5347 = 0x96L;
            int i, j;
lbl_5320:
            (*g_74) = l_5138;
            if (((void*)0 == &l_5137))
            { /* block id: 2226 */
                int64_t ** const l_5145[2] = {&g_210,&g_210};
                int32_t l_5156 = 0L;
                int32_t *l_5157 = &l_5156;
                int32_t l_5158 = 1L;
                int8_t l_5162 = (-7L);
                int32_t l_5202[10] = {0xC45DB010L,0xC45DB010L,0xC45DB010L,0xC45DB010L,0xC45DB010L,0xC45DB010L,0xC45DB010L,0xC45DB010L,0xC45DB010L,0xC45DB010L};
                int32_t l_5249[1];
                uint64_t **l_5254 = &g_1972[1];
                uint64_t ** const *l_5253 = &l_5254;
                const uint8_t l_5275 = 0xD8L;
                int32_t ***l_5285 = &g_1181[1];
                int i;
                for (i = 0; i < 1; i++)
                    l_5249[i] = (-1L);
                if ((safe_sub_func_uint32_t_u_u(((((safe_mul_func_uint8_t_u_u((((((0x2CC43460L || (safe_sub_func_int64_t_s_s((((l_5065[3] = l_5130) , (((((*g_3402) == (*g_4683)) , l_5145[0]) != (void*)0) < (~((*g_3405) |= l_5147)))) >= ((*l_5157) = (safe_lshift_func_int32_t_s_u((safe_div_func_int16_t_s_s(l_5064, (safe_rshift_func_int64_t_s_u((safe_mod_func_int8_t_s_s(l_5156, l_5156)), l_5064)))), (***g_2619))))), l_5097))) || (****g_4683)) >= (**g_1546)) <= l_5158) < l_5130), 0x90L)) , l_5159) != l_5161) , 0xFB273995L), l_5162)))
                { /* block id: 2230 */
                    uint16_t l_5163 = 0x67D7L;
                    return l_5163;
                }
                else
                { /* block id: 2232 */
                    int16_t l_5165[9] = {0xD6C0L,0xD6C0L,0xD6C0L,0xD6C0L,0xD6C0L,0xD6C0L,0xD6C0L,0xD6C0L,0xD6C0L};
                    uint32_t l_5197 = 0x57B54D88L;
                    int32_t l_5200[5];
                    int16_t l_5201 = 0xA88EL;
                    int8_t **l_5224 = &g_1547[0];
                    uint8_t l_5259 = 0x41L;
                    uint8_t **l_5287 = &g_3514;
                    int i;
                    for (i = 0; i < 5; i++)
                        l_5200[i] = 0x9740E2F5L;
                    (*g_275) ^= ((l_5164 == (void*)0) | l_5165[4]);
                    for (g_485 = 0; (g_485 <= 3); g_485 = safe_add_func_int64_t_s_s(g_485, 9))
                    { /* block id: 2236 */
                        if (l_5165[4])
                            break;
                        ++l_5169[1];
                        (*g_3766) = l_5164;
                    }
                    if ((safe_mul_func_int16_t_s_s(((l_5174 , l_5165[0]) != (safe_rshift_func_uint64_t_u_s(l_5177, ((***g_1545) ^ (&g_1888 == (l_5181 = g_5178)))))), (safe_mul_func_int64_t_s_s((safe_rshift_func_uint8_t_u_u((l_5165[4] , ((**g_3513)--)), ((safe_mul_func_uint16_t_u_u((~l_5191), (l_5165[4] <= l_5192))) , 0x96L))), 1UL)))))
                    { /* block id: 2243 */
                        int32_t *l_5193 = &g_1294;
                        int32_t *l_5194 = &g_274;
                        int32_t *l_5195 = &g_820[2][0];
                        int32_t *l_5196[9][1] = {{&g_820[2][0]},{&l_5191},{&g_820[2][0]},{&l_5191},{&g_820[2][0]},{&l_5191},{&g_820[2][0]},{&l_5191},{&g_820[2][0]}};
                        int8_t **l_5225 = (void*)0;
                        int32_t *l_5226[9][1][1] = {{{(void*)0}},{{&g_122}},{{(void*)0}},{{(void*)0}},{{&g_122}},{{(void*)0}},{{(void*)0}},{{&g_122}},{{(void*)0}}};
                        int i, j, k;
                        ++l_5197;
                        l_5204--;
                        (*l_5195) ^= (safe_mul_func_uint16_t_u_u(((safe_mod_func_uint8_t_u_u((((safe_mul_func_int8_t_s_s(((g_122 = (((((((0x21DB5C8DL == ((safe_add_func_uint32_t_u_u(((safe_rshift_func_int16_t_s_u(((*g_3405) = (0L & 251UL)), 7)) >= l_5083), (((safe_lshift_func_int16_t_s_u(1L, (*l_5194))) ^ (safe_rshift_func_uint16_t_u_s((((((**g_1254) = (((!(***g_2619)) , g_5222) != ((l_5223[0][1] , l_5224) == l_5225))) , (void*)0) != &g_690) , l_5201), l_5165[1]))) && 0xE2CE91B4305AE8F7LL))) ^ l_5200[0])) && 4L) && (*l_5157)) < (*g_375)) != l_5201) > 0xCFFF9C3DL) < 0x11518F3FL)) , 0xBBL), l_5200[0])) , &g_3520) == (void*)0), 0x4EL)) == 0UL), l_5130));
                        if (l_5201)
                            goto lbl_5227;
                    }
                    else
                    { /* block id: 2251 */
                        int32_t *l_5228 = &g_1294;
                        int32_t *l_5229 = (void*)0;
                        int32_t *l_5230 = &l_5177;
                        int32_t *l_5231 = &l_5200[0];
                        int32_t *l_5232 = &l_5202[6];
                        int32_t *l_5233[10][9][2] = {{{&l_5202[1],&l_5065[3]},{&l_5200[2],&l_5200[0]},{&g_274,&g_274},{&l_5065[7],&l_5168[8]},{&l_5191,&l_5065[3]},{&l_5191,&l_5191},{&l_5191,&l_5200[0]},{&l_5065[7],&l_5200[0]},{&g_274,&l_5168[8]}},{{&l_5200[2],&l_5191},{&l_5202[1],&l_5191},{&l_5200[2],&l_5168[8]},{&g_274,&l_5200[0]},{&l_5065[7],&l_5200[0]},{&l_5191,&l_5191},{&l_5191,&l_5065[3]},{&l_5191,&l_5168[8]},{&l_5065[7],&g_274}},{{&g_274,&l_5200[0]},{&l_5200[2],&l_5065[3]},{&l_5202[1],&l_5065[3]},{&l_5200[2],&l_5200[0]},{&g_274,&g_274},{&l_5065[7],&l_5168[8]},{&l_5191,&l_5065[3]},{&l_5191,&l_5191},{&l_5191,&l_5200[0]}},{{&l_5065[7],&l_5200[0]},{&g_274,&l_5168[8]},{&l_5200[2],&l_5191},{&l_5202[1],&l_5191},{&l_5200[2],&l_5168[8]},{&g_274,&l_5200[0]},{&l_5065[7],&l_5200[0]},{&l_5191,&l_5191},{&l_5191,&l_5065[3]}},{{&l_5191,&l_5168[8]},{&l_5065[7],&g_274},{&g_274,&l_5200[0]},{&l_5200[2],&l_5065[3]},{&l_5202[1],&l_5065[3]},{&l_5200[2],&l_5200[0]},{&g_274,&g_274},{&l_5065[7],&l_5168[8]},{&l_5191,&l_5065[3]}},{{&l_5191,&l_5191},{&l_5191,&l_5200[0]},{&l_5065[7],&l_5200[0]},{&g_274,&l_5168[8]},{&l_5200[2],&l_5191},{&l_5202[1],&l_5191},{&l_5200[2],&l_5168[8]},{&g_274,&l_5200[0]},{&l_5065[7],&l_5200[0]}},{{&l_5191,&l_5191},{&l_5191,&l_5065[3]},{&l_5191,&l_5168[8]},{&l_5065[7],&g_274},{&g_274,&l_5200[0]},{&l_5200[2],&l_5065[3]},{&l_5202[1],&l_5065[3]},{&l_5200[2],&l_5200[0]},{&g_274,&g_274}},{{&l_5065[7],&l_5168[8]},{&l_5191,&l_5065[3]},{&l_5191,&g_274},{&g_11,&l_5177},{&l_5191,&l_5168[8]},{&l_5202[1],&l_5200[0]},{(void*)0,&g_274},{&l_5191,&g_274},{(void*)0,&l_5200[0]}},{{&l_5202[1],&l_5168[8]},{&l_5191,&l_5177},{&g_11,&g_274},{&l_5200[2],&l_5200[0]},{&g_11,&l_5200[0]},{&l_5191,&l_5200[0]},{&l_5202[1],&l_5177},{(void*)0,&l_5200[0]},{&l_5191,&l_5200[0]}},{{(void*)0,&l_5177},{&l_5202[1],&l_5200[0]},{&l_5191,&l_5200[0]},{&g_11,&l_5200[0]},{&l_5200[2],&g_274},{&g_11,&l_5177},{&l_5191,&l_5168[8]},{&l_5202[1],&l_5200[0]},{(void*)0,&g_274}}};
                        uint64_t l_5234 = 0xDEA8965A93152362LL;
                        int32_t l_5247 = 0xE4B53254L;
                        int i, j, k;
                        (*l_5157) = l_5165[3];
                        l_5234++;
                        (*g_275) = (safe_lshift_func_int16_t_s_s(((((((((*l_5231) = ((((g_5239 == ((*g_2619) = (*g_2619))) > ((*l_5228) && (l_5064 , ((safe_mod_func_uint64_t_u_u((safe_sub_func_int8_t_s_s(l_5244, (((*g_3405) &= ((l_5065[3] >= (((*l_5157) | (safe_sub_func_uint16_t_u_u(l_5247, (*g_1255)))) , l_5248)) , (**g_1254))) & l_5165[8]))), l_5064)) || 65528UL)))) ^ l_5064) ^ (**g_1266))) | 0x4143L) , 1UL) | l_5249[0]) < 0UL) & l_5065[0]) < 0xB8C7L), 9));
                        l_5250++;
                    }
                    if (((l_5253 == (void*)0) == (safe_sub_func_int8_t_s_s((((l_5083 != (safe_sub_func_int8_t_s_s((*l_5157), 1UL))) ^ (l_5259 , ((**g_3513) = (l_5064 && 1UL)))) & (safe_mul_func_uint8_t_u_u(l_5064, l_5083))), 0x98L))))
                    { /* block id: 2261 */
                        uint64_t l_5266 = 0xC7C08D71C44FC771LL;
                        (*g_275) = (((safe_lshift_func_uint32_t_u_u((safe_mul_func_uint16_t_u_u(l_5266, (((l_5274 = (safe_mul_func_int32_t_s_s((safe_add_func_int32_t_s_s((((l_5271 && (0x44385EC3L && l_5271)) || (safe_mul_func_int64_t_s_s(l_5248, (((l_5065[3] , (l_5200[0] | l_5266)) > 0xAA851419L) < l_5065[2])))) , l_5266), l_5197)), (*l_5157)))) | l_5275) <= (*l_5157)))), 2)) , 0xF90AL) , 9L);
                    }
                    else
                    { /* block id: 2264 */
                        int32_t ***l_5292 = (void*)0;
                        l_5200[0] = (l_5289 ^= (safe_rshift_func_uint32_t_u_u((safe_mod_func_uint32_t_u_u((l_5130 && (~(safe_unary_minus_func_uint32_t_u(((**g_5239) ^= (l_5271 , ((((g_5282 | ((l_5065[6] != (safe_mod_func_int32_t_s_s(((((void*)0 != l_5285) && 0UL) <= (((l_5287 = l_5286[1][1]) == l_5288) && 255UL)), 0x4AB43449L))) <= 1UL)) >= l_5064) <= (*g_3405)) & (**g_3513)))))))), l_5065[3])), 19)));
                        (*g_5294) = ((*l_5285) = l_5290);
                    }
                }
            }
            else
            { /* block id: 2273 */
                int32_t *l_5299 = &l_5203;
                int32_t l_5315 = (-2L);
                int32_t ***** const l_5316 = &l_5161;
                uint8_t ***l_5317[5] = {&l_5286[1][1],&l_5286[1][1],&l_5286[1][1],&l_5286[1][1],&l_5286[1][1]};
                int i;
                for (g_184 = 11; (g_184 <= 21); ++g_184)
                { /* block id: 2276 */
                    int32_t l_5306 = 4L;
                    uint16_t *l_5323[6][4][4] = {{{&l_5064,&g_2609,(void*)0,&g_2357},{&g_196,(void*)0,&g_2609,&l_5064},{&g_2609,&g_3872,&g_196,&g_2609},{&g_2609,&g_2357,&g_3872,(void*)0}},{{&g_2609,(void*)0,&l_5064,&g_196},{(void*)0,&g_2357,&g_196,&g_2609},{&l_5064,&g_2609,&g_2609,(void*)0},{&g_196,&g_2609,&g_2609,&g_2609}},{{(void*)0,&g_196,(void*)0,&g_2609},{&g_196,(void*)0,&g_196,(void*)0},{(void*)0,&g_2357,&g_2609,&g_196},{(void*)0,(void*)0,&g_196,&g_2609}},{{&g_196,&g_196,(void*)0,&l_5064},{(void*)0,&g_3872,&g_2609,&l_5244},{&g_196,&g_2357,&g_2609,&g_3872},{&l_5064,(void*)0,&g_196,&g_196}},{{(void*)0,&g_2609,&l_5064,&g_196},{&g_2609,&g_2357,&g_3872,&g_2357},{&g_2609,&l_5064,&g_196,(void*)0},{&g_2609,&g_2609,&g_2609,&g_2609}},{{&g_196,(void*)0,(void*)0,&g_2357},{&l_5064,&g_2357,(void*)0,(void*)0},{&g_3872,&g_196,&g_2357,(void*)0},{&l_5064,&g_2357,&g_2357,&g_2357}}};
                    int16_t ***l_5330 = &g_3404;
                    int16_t ****l_5329 = &l_5330;
                    int32_t l_5345 = 2L;
                    uint8_t l_5348 = 0UL;
                    int i, j, k;
                    for (g_485 = 0; (g_485 < 50); g_485++)
                    { /* block id: 2279 */
                        (*g_74) = l_5299;
                        (*g_188) = (**g_173);
                    }
                    for (l_5177 = 0; (l_5177 != (-17)); --l_5177)
                    { /* block id: 2285 */
                        const uint16_t l_5318 = 65529UL;
                        (*l_5290) = func_22(((**g_3404) = (safe_div_func_uint64_t_u_u((((safe_mod_func_int8_t_s_s(((**g_1546) = 0L), (-8L))) , (((l_5306 = l_5306) | (248UL > (safe_lshift_func_int8_t_s_s(0x58L, 3)))) <= (safe_sub_func_uint16_t_u_u((safe_mod_func_uint16_t_u_u((((safe_unary_minus_func_uint64_t_u(((l_5315 ^= ((*g_375) = ((*l_5299) , ((void*)0 == l_5314)))) >= (((void*)0 != l_5316) && 0UL)))) , &l_5288) != l_5317[3]), l_5318)), 0x031AL)))) || l_5319), 0xB3C720B30BB1C83CLL))));
                        if (g_1324)
                            goto lbl_5320;
                    }
                    l_5348 = (((((*g_3622) &= ((*g_1217) ^ (((l_5325 |= (l_5324 = 0xCC88L)) & (safe_add_func_uint8_t_u_u((~(((*l_5329) = &g_3404) == (*g_4683))), ((safe_sub_func_uint16_t_u_u(((0x1D5DL && (((--l_5334) >= (**g_3404)) != ((**g_1546) = (safe_rshift_func_int8_t_s_s((safe_rshift_func_int32_t_s_u((((safe_div_func_uint16_t_u_u((g_5343[1] != (*g_3514)), 0x44BDL)) , 0x4528D3F89A015C4ALL) != l_5306), 23)), (*l_5299)))))) == l_5344[0]), l_5345)) <= 0x0C70E353L)))) < l_5346))) == 0L) & l_5347) , l_5306);
                }
            }
        }
        else
        { /* block id: 2303 */
            uint16_t l_5353 = 0UL;
            int64_t ****l_5370 = &g_1833;
            int32_t l_5376 = (-1L);
            int8_t l_5378 = 0x33L;
            int16_t l_5392 = (-7L);
            int16_t l_5403[3];
            uint32_t l_5432[6][10] = {{4294967295UL,4294967292UL,1UL,0x749B253DL,0x4D3F6B4BL,0x52FCD3AFL,0x6C463F21L,1UL,0x92CAB87BL,8UL},{0xD8BCB5E0L,0x92CAB87BL,0x1DA35900L,4294967292UL,0x4D3F6B4BL,8UL,0x749B253DL,0x1DA35900L,0x749B253DL,8UL},{0x4D3F6B4BL,0x6C463F21L,0x800CEFC1L,0x6C463F21L,0x4D3F6B4BL,4294967295UL,0x33D6781BL,0x800CEFC1L,4294967292UL,8UL},{0x52FCD3AFL,0x749B253DL,1UL,0x33D6781BL,0x4D3F6B4BL,0xD8BCB5E0L,4294967292UL,1UL,0x6C463F21L,8UL},{8UL,0xDA5C47AAL,0x78A9163AL,4294967287UL,0x92CAB87BL,0x92CAB87BL,4294967287UL,0x78A9163AL,0xDA5C47AAL,0x6C463F21L},{4294967292UL,0xFAB9B3FBL,4294967295UL,4294967295UL,0x92CAB87BL,0x33D6781BL,0xD3AF883CL,4294967295UL,4294967287UL,0x6C463F21L}};
            uint32_t l_5440 = 0x9D48B55FL;
            uint32_t l_5441 = 1UL;
            int32_t l_5469 = 0x74C75505L;
            uint32_t l_5489 = 18446744073709551615UL;
            const int32_t l_5491 = (-3L);
            int32_t l_5506 = 1L;
            const int64_t * const l_5536 = &g_330[1][5];
            const int64_t * const *l_5535 = &l_5536;
            uint16_t ***l_5601 = &g_2522;
            int32_t l_5602 = 9L;
            uint32_t l_5605 = 3UL;
            int8_t l_5606 = 0L;
            int8_t l_5684 = (-1L);
            int64_t **l_5698 = &g_210;
            int i, j;
            for (i = 0; i < 3; i++)
                l_5403[i] = (-1L);
        }
    }
    else
    { /* block id: 2468 */
        uint64_t l_5706 = 6UL;
        int32_t l_5707 = 0x6AD9FAF7L;
        const uint32_t *l_5714 = &l_5468;
        uint32_t l_5771[1][9] = {{4UL,4UL,4UL,4UL,4UL,4UL,4UL,4UL,4UL}};
        int32_t l_5776 = (-5L);
        int32_t l_5777 = 0x388A753FL;
        int32_t l_5778 = (-3L);
        uint8_t ***l_5822[6] = {&g_3513,&g_3513,&g_3513,&g_3513,&g_3513,&g_3513};
        int32_t l_5843 = 6L;
        int32_t l_5845 = 0x2A658BF0L;
        int32_t l_5846 = (-3L);
        int32_t l_5851 = 6L;
        int16_t ****l_5858 = (void*)0;
        uint64_t l_5868 = 0xA580C96EF731D159LL;
        int8_t ** const **l_5896 = &g_1545;
        uint64_t l_5920 = 7UL;
        int16_t l_5989 = (-7L);
        int i, j;
        l_5707 = l_5706;
        if (((l_5706 & (((**g_3513) = (**g_3513)) || ((l_5346 != ((*g_1888) != (void*)0)) | (((safe_mul_func_int64_t_s_s((safe_rshift_func_int64_t_s_u(l_5706, 4)), (&g_3500[4] == &g_3500[4]))) , ((*g_5239) = &l_5644)) != l_5714)))) & (*g_3622)))
        { /* block id: 2472 */
            int8_t l_5718 = (-2L);
            int32_t l_5759 = 0xFA3DF979L;
            int32_t l_5769 = 1L;
            uint32_t *l_5797 = (void*)0;
            uint8_t ***l_5823 = &g_3513;
            int32_t *l_5827 = (void*)0;
            int32_t l_5838 = 8L;
            int32_t l_5839 = 0L;
            int32_t l_5840 = 0x54F5B079L;
            int32_t l_5841 = 1L;
            int32_t l_5842 = 0L;
            int32_t l_5844 = 0x0FA8400AL;
            int32_t l_5847 = (-4L);
            int32_t l_5848[1];
            int32_t l_5853 = 0xDB7A7BECL;
            int8_t l_5883 = (-1L);
            uint8_t * const *l_5895 = &g_3514;
            uint8_t * const **l_5894 = &l_5895;
            uint8_t * const ***l_5893 = &l_5894;
            uint8_t * const *** const *l_5892 = &l_5893;
            int32_t ****l_5908 = &g_3000[2][4][1];
            int32_t l_5913 = 2L;
            int32_t l_5941 = 0x9E6509CDL;
            int8_t l_5952 = 0x1AL;
            int i;
            for (i = 0; i < 1; i++)
                l_5848[i] = 0x13F28E80L;
            for (l_5346 = 23; (l_5346 != 20); l_5346--)
            { /* block id: 2475 */
                uint32_t l_5717 = 0x301D597EL;
                int32_t l_5726[2];
                int i;
                for (i = 0; i < 2; i++)
                    l_5726[i] = 3L;
                for (g_1608 = 0; (g_1608 <= 7); g_1608 += 1)
                { /* block id: 2478 */
                    int32_t l_5732 = (-1L);
                    l_5717 = 0xBC6E800EL;
                    if (l_5718)
                    { /* block id: 2480 */
                        const int32_t l_5724 = 0L;
                        int32_t *l_5725 = &g_11;
                        uint16_t l_5730[3][3] = {{0xB345L,0xB345L,0xFF56L},{0xB345L,0xB345L,0xFF56L},{0xB345L,0xB345L,0xFF56L}};
                        uint8_t *l_5731 = &l_5319;
                        int i, j;
                        l_5732 &= (safe_sub_func_int64_t_s_s((-1L), ((**l_5547) = (+(safe_div_func_uint8_t_u_u(((**l_5288) = l_5524[0]), ((*l_5731) = ((((((2L || l_5717) , l_5724) < (((l_5726[1] |= ((*l_5725) = (-1L))) , ((((**g_1254) = (l_5718 | (safe_mul_func_uint8_t_u_u(0x7BL, (((0x82A3CBA9L ^ l_5729) || 0x253A7649L) == 0xAD3D7C40L))))) , 0xB16A6C64L) == l_5730[1][1])) != 3UL)) , (void*)0) != (void*)0) , 249UL))))))));
                    }
                    else
                    { /* block id: 2488 */
                        (*l_5290) = l_5733;
                    }
                }
            }
            for (l_5629 = 5; (l_5629 == (-23)); l_5629--)
            { /* block id: 2495 */
                return l_5706;
            }
            for (g_111 = 0; (g_111 <= 3); g_111 += 1)
            { /* block id: 2500 */
                int64_t ****l_5738[6] = {&g_1833,&g_1833,&g_1833,&g_1833,&g_1833,&g_1833};
                const uint32_t **l_5749 = &g_5748;
                int32_t l_5770 = 6L;
                uint32_t l_5801 = 1UL;
                const int32_t *l_5804 = &l_5557;
                int32_t l_5849 = 0x64C53D08L;
                int32_t l_5850 = 0x9EEE5EBEL;
                int32_t l_5854 = 0xC08ED93DL;
                uint32_t l_5865[10][9][2] = {{{0xC0144F27L,4294967293UL},{0xD96DF1D6L,5UL},{1UL,5UL},{0xD96DF1D6L,4294967293UL},{0xC0144F27L,4294967295UL},{0xA6288F8DL,1UL},{0x2FA92292L,0UL},{4294967293UL,1UL},{0xD96DF1D6L,1UL}},{{4294967295UL,0xA6288F8DL},{4294967295UL,4294967293UL},{0x9CD452B3L,0UL},{1UL,0UL},{0x2FA92292L,0x88B5FDB6L},{0xC0144F27L,0xC0144F27L},{4294967295UL,1UL},{0xA7C18B94L,5UL},{0x88B5FDB6L,1UL}},{{0x9CD452B3L,0x88B5FDB6L},{0xA6288F8DL,4294967295UL},{0xA6288F8DL,0x88B5FDB6L},{0x9CD452B3L,1UL},{0x88B5FDB6L,5UL},{0xA7C18B94L,1UL},{4294967295UL,0xC0144F27L},{0xC0144F27L,0x88B5FDB6L},{0x2FA92292L,0UL}},{{1UL,0UL},{0x9CD452B3L,4294967293UL},{4294967295UL,0xA6288F8DL},{4294967295UL,1UL},{0xD96DF1D6L,1UL},{4294967293UL,0UL},{0x2FA92292L,1UL},{0xA6288F8DL,4294967295UL},{0xC0144F27L,4294967293UL}},{{0xD96DF1D6L,5UL},{1UL,5UL},{0xD96DF1D6L,4294967293UL},{0xC0144F27L,4294967295UL},{0xA6288F8DL,1UL},{0x2FA92292L,0UL},{4294967293UL,1UL},{0xD96DF1D6L,1UL},{4294967295UL,0xA6288F8DL}},{{4294967295UL,4294967293UL},{0x9CD452B3L,0UL},{1UL,0UL},{0x2FA92292L,0x88B5FDB6L},{0xC0144F27L,0xC0144F27L},{4294967295UL,1UL},{0xA7C18B94L,5UL},{0x88B5FDB6L,1UL},{0x9CD452B3L,0x88B5FDB6L}},{{0xA6288F8DL,4294967295UL},{0xA6288F8DL,0x88B5FDB6L},{0x9CD452B3L,1UL},{0x88B5FDB6L,5UL},{0xA7C18B94L,1UL},{4294967295UL,0xC0144F27L},{0xC0144F27L,0x88B5FDB6L},{0x2FA92292L,0UL},{1UL,0UL}},{{0x9CD452B3L,4294967293UL},{4294967295UL,0xA6288F8DL},{4294967295UL,1UL},{0xD96DF1D6L,1UL},{4294967293UL,0UL},{0x2FA92292L,1UL},{0xA6288F8DL,4294967295UL},{0xC0144F27L,8UL},{0x4F8C4E19L,4294967295UL}},{{0xA6C6B160L,4294967295UL},{0x4F8C4E19L,8UL},{0x68FFE48EL,1UL},{0x88B5FDB6L,0xA6C6B160L},{0x35F86A72L,4294967295UL},{8UL,0x50E2D6F7L},{0x4F8C4E19L,0xD96DF1D6L},{0xFCC159F8L,0x88B5FDB6L},{1UL,8UL}},{{4294967288UL,4294967295UL},{0xD96DF1D6L,0x09923A88L},{0x35F86A72L,0xA7C18B94L},{0x68FFE48EL,0x68FFE48EL},{1UL,0xD96DF1D6L},{0xFD6B1B62L,4294967295UL},{0xA7C18B94L,0x50E2D6F7L},{4294967288UL,0xA7C18B94L},{0x88B5FDB6L,0xFCC159F8L}}};
                int16_t l_5867 = 1L;
                int i, j, k;
                l_5707 |= (-3L);
                (*l_5290) = &l_5707;
                for (g_3872 = 0; (g_3872 <= 2); g_3872 += 1)
                { /* block id: 2505 */
                    int64_t l_5744 = 0x1EF46B49F8E7963DLL;
                    int32_t **l_5756 = &g_5682;
                    int32_t ***l_5755[3];
                    int32_t l_5768[8] = {0x87E250BBL,0x87E250BBL,1L,0x87E250BBL,0x87E250BBL,1L,0x87E250BBL,0x87E250BBL};
                    uint64_t l_5779 = 18446744073709551615UL;
                    uint32_t l_5787 = 0x49DACED2L;
                    int32_t *l_5789[4] = {&l_5759,&l_5759,&l_5759,&l_5759};
                    int16_t l_5802 = 0x369FL;
                    const int32_t **l_5803 = &g_3903[5][0][0];
                    volatile int32_t *l_5806 = (void*)0;
                    uint32_t *** const *l_5817 = &g_2270;
                    uint32_t ** const ***l_5820 = &g_5818;
                    int16_t ***l_5832 = &l_5500[2];
                    int16_t ****l_5831 = &l_5832;
                    int32_t l_5852 = 0L;
                    uint32_t l_5855[4][3][10] = {{{0x32CC394BL,0UL,0UL,0x32CC394BL,0UL,8UL,8UL,0UL,0x32CC394BL,0UL},{0x32CC394BL,0x32CC394BL,8UL,0UL,0UL,0UL,0UL,8UL,0x32CC394BL,0x32CC394BL},{0UL,0UL,8UL,0x32CC394BL,0x32CC394BL,8UL,0UL,0UL,0UL,0UL}},{{0UL,0x32CC394BL,0UL,0UL,0x32CC394BL,0UL,8UL,8UL,0UL,0x32CC394BL},{0x32CC394BL,0UL,0UL,0x32CC394BL,0UL,8UL,8UL,0UL,0x32CC394BL,0UL},{0x32CC394BL,0x32CC394BL,8UL,0UL,0UL,0UL,0UL,8UL,0x32CC394BL,0x32CC394BL}},{{0UL,0UL,8UL,0x32CC394BL,0x32CC394BL,8UL,0UL,0UL,0UL,0UL},{0UL,0x32CC394BL,0UL,0UL,0x32CC394BL,0UL,8UL,8UL,0UL,0x32CC394BL},{0x32CC394BL,0UL,0UL,0x32CC394BL,0UL,8UL,8UL,0UL,0x32CC394BL,0UL}},{{0x32CC394BL,0x32CC394BL,8UL,0UL,0UL,0UL,0UL,8UL,0x32CC394BL,0x32CC394BL},{0UL,0UL,8UL,0x32CC394BL,0x32CC394BL,8UL,0UL,0UL,0UL,0UL},{0UL,0x32CC394BL,0UL,0UL,0x32CC394BL,0UL,8UL,8UL,0UL,0x32CC394BL}}};
                    int i, j, k;
                    for (i = 0; i < 3; i++)
                        l_5755[i] = &l_5756;
                    if ((safe_rshift_func_int64_t_s_u(((l_5738[1] = (*g_3766)) == (void*)0), 7)))
                    { /* block id: 2507 */
                        int64_t l_5750 = 7L;
                        int32_t *l_5760 = (void*)0;
                        int32_t *l_5761 = &g_820[2][0];
                        int32_t *l_5762 = (void*)0;
                        int32_t *l_5763 = &l_5557;
                        int32_t *l_5764 = &l_5557;
                        int32_t *l_5765 = &g_820[2][0];
                        int32_t *l_5766 = &l_5759;
                        int32_t *l_5767[7][3][5] = {{{(void*)0,&l_5289,(void*)0,&l_5759,&l_5557},{(void*)0,&g_820[5][0],(void*)0,(void*)0,&g_820[5][0]},{&l_5289,&l_5289,&g_1294,&g_820[2][0],&g_11}},{{&l_5557,(void*)0,&l_5065[3],&l_5065[3],&g_1294},{(void*)0,&l_5289,&l_5759,&l_5557,&l_5289},{(void*)0,(void*)0,&g_1294,(void*)0,&l_5065[3]}},{{&g_1294,(void*)0,(void*)0,&g_1294,&l_5707},{(void*)0,&g_1294,(void*)0,(void*)0,&g_820[9][0]},{&l_5557,&l_5759,&l_5289,(void*)0,&g_1294}},{{&g_1294,(void*)0,&l_5557,(void*)0,&g_1294},{&l_5289,&l_5707,&g_820[2][0],&g_1294,&g_820[2][0]},{&l_5557,&l_5557,&l_5759,(void*)0,(void*)0}},{{&g_11,(void*)0,&g_11,&l_5557,&g_1294},{&g_1294,&g_820[2][0],&g_820[5][0],&g_1294,&l_5289},{&l_5707,(void*)0,&l_5289,&l_5289,&l_5289}},{{&l_5065[6],&l_5557,&g_1294,&l_5557,&l_5065[6]},{(void*)0,&l_5707,&g_11,&g_11,&g_11},{&l_5065[3],(void*)0,(void*)0,&g_1294,&g_1294}},{{&g_11,&l_5759,&l_5065[3],&l_5707,&g_11},{&l_5289,&g_1294,&l_5065[3],&l_5065[6],&l_5065[6]},{&g_11,(void*)0,&g_11,(void*)0,&l_5289}}};
                        int i, j, k;
                        (*g_275) = (-1L);
                        (*g_74) = func_22((safe_lshift_func_uint32_t_u_u(((+(((*g_2619) == (l_5749 = ((l_5744 <= (0L < (safe_sub_func_uint16_t_u_u(l_5706, (g_999[g_111] == (void*)0))))) , g_5747))) , (((l_5750 , ((**g_3404) ^= (safe_div_func_int64_t_s_s(((safe_mod_func_int16_t_s_s(((l_5750 <= (-9L)) || 0xF90F00CEL), 0x7288L)) > l_5707), l_5707)))) ^ (*l_5733)) & l_5744))) ^ 0xC6L), (**g_2620))));
                        (*g_5757) = (l_5755[1] = (void*)0);
                        l_5771[0][4]++;
                    }
                    else
                    { /* block id: 2515 */
                        int32_t *l_5774 = &l_5289;
                        int32_t *l_5775[9];
                        int32_t l_5788 = 8L;
                        int i;
                        for (i = 0; i < 9; i++)
                            l_5775[i] = &l_5065[8];
                        l_5779--;
                        (*l_5290) = func_22((safe_mul_func_int16_t_s_s(((l_5707 = (l_5784 != (l_5768[6] , (g_5785 = g_5785)))) == l_5787), (0L >= l_5769))));
                        if (l_5788)
                            continue;
                        l_5789[0] = func_22((*g_1217));
                    }
                    l_5804 = ((*l_5803) = func_22(((((*g_1217) > (((safe_rshift_func_int64_t_s_s((safe_add_func_uint32_t_u_u((safe_lshift_func_uint16_t_u_u(((void*)0 == &l_5744), ((((*g_3622) = (((safe_unary_minus_func_int32_t_s((((l_5797 = (l_5771[0][8] , (void*)0)) == (void*)0) , (((void*)0 == (*g_3766)) && ((*g_3514) = (((safe_rshift_func_uint16_t_u_u(((safe_unary_minus_func_int32_t_s(((0UL & 18446744073709551612UL) ^ 0x8DL))) > 0x1E2A0722L), l_5771[0][4])) , l_5801) <= 0L)))))) , l_5707) != l_5759)) , 0x58B7L) || (*l_5733)))), 0xD2BA53B8L)), l_5771[0][4])) , l_5707) || l_5801)) || 4L) , l_5802)));
                    if ((safe_unary_minus_func_uint32_t_u(((-1L) >= 18446744073709551612UL))))
                    { /* block id: 2528 */
                        (*g_188) = (void*)0;
                    }
                    else
                    { /* block id: 2530 */
                        l_5806 = (*g_174);
                        (*g_5810) = &l_5460;
                    }
                    if ((safe_mod_func_int8_t_s_s((safe_mod_func_uint16_t_u_u(((l_5759 >= (((safe_add_func_uint8_t_u_u(((void*)0 == l_5817), (4294967295UL < (((*l_5820) = g_5818) == &g_2619)))) > (((l_5707 || (+0UL)) , l_5822[4]) == l_5823)) != 0x86L)) < l_5771[0][4]), (*l_5733))), g_5824)))
                    { /* block id: 2535 */
                        int16_t *****l_5833[7] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
                        uint16_t *l_5836[5] = {&g_2609,&g_2609,&g_2609,&g_2609,&g_2609};
                        int32_t l_5837[10][1] = {{0xA2515B92L},{(-1L)},{0x6A640C63L},{0x6A640C63L},{(-1L)},{0xA2515B92L},{(-1L)},{0x6A640C63L},{0x6A640C63L},{(-1L)}};
                        int i, j;
                        (*g_74) = func_22((safe_mul_func_uint8_t_u_u(0xB1L, ((((*l_5803) != (l_5827 = (void*)0)) , (-7L)) >= (((safe_unary_minus_func_int16_t_s((safe_lshift_func_uint8_t_u_u((((l_5834[0] = l_5831) == (((l_5855[3][1][4]++) >= (0x6D9A00A8L == (*l_5733))) , l_5858)) <= ((**g_1546) |= (((((((***g_5785) ^= (safe_mod_func_uint16_t_u_u((l_5851 = (safe_lshift_func_uint16_t_u_u((l_5844 ^= (((safe_rshift_func_uint64_t_u_s((**g_1266), l_5840)) < l_5838) && l_5865[8][8][0])), 15))), (**g_3404)))) , l_5837[4][0]) || l_5839) <= l_5845) && (*l_5733)) >= (*l_5804)))), 7)))) && (*l_5733)) >= 0x46B86569AAC5CC94LL)))));
                        if ((*g_275))
                            break;
                    }
                    else
                    { /* block id: 2545 */
                        int16_t l_5866 = 0L;
                        (*l_5290) = &l_5848[0];
                        l_5868--;
                    }
                    for (g_1419 = 0; (g_1419 <= 2); g_1419 += 1)
                    { /* block id: 2551 */
                        int32_t l_5871[10][4] = {{0xE895C14DL,0x82A548A0L,(-1L),(-2L)},{(-1L),(-2L),(-1L),0x82A548A0L},{0xE895C14DL,(-2L),0x99C54015L,(-2L)},{0xE895C14DL,0x82A548A0L,(-1L),(-2L)},{(-1L),(-2L),(-1L),0x82A548A0L},{0xE895C14DL,(-2L),0x99C54015L,(-2L)},{0xE895C14DL,0x82A548A0L,(-1L),(-2L)},{(-1L),(-2L),(-1L),0x82A548A0L},{0xE895C14DL,(-2L),0x99C54015L,(-2L)},{0xE895C14DL,0x82A548A0L,(-1L),(-2L)}};
                        int i, j, k;
                        (*g_275) &= l_5871[5][0];
                        l_5839 = (*l_5733);
                    }
                }
            }
            for (l_5868 = 28; (l_5868 <= 55); l_5868 = safe_add_func_uint32_t_u_u(l_5868, 2))
            { /* block id: 2559 */
                uint64_t l_5888 = 18446744073709551615UL;
                int32_t l_5927 = (-7L);
                uint16_t l_5929[7][9] = {{65527UL,0xD57AL,65527UL,0x3052L,0x091BL,0x3052L,65527UL,0xD57AL,65527UL},{0x342AL,0UL,65531UL,0x342AL,0x8502L,65531UL,65531UL,0x8502L,0x342AL},{0xE9B6L,0xD57AL,0xE9B6L,0x3052L,0x3733L,0x3052L,0xE9B6L,0xD57AL,0xE9B6L},{0x342AL,0x8502L,65531UL,65531UL,0x8502L,0x342AL,65531UL,0UL,0x342AL},{65527UL,0xD57AL,65527UL,0x3052L,0x091BL,0x3052L,65527UL,0xD57AL,0UL},{0x244BL,65531UL,4UL,0x244BL,0x342AL,4UL,4UL,0x342AL,0x244BL},{65528UL,0x3052L,65528UL,0x1CD3L,0xE9B6L,0x1CD3L,65528UL,0x3052L,65528UL}};
                int8_t l_5949 = 0x56L;
                int32_t l_5958 = 0x4333FFF8L;
                int32_t l_5959 = 0x640FD9C6L;
                int32_t l_5961[2][2][3] = {{{0x76D2AEFCL,0x2DB046CCL,0x76D2AEFCL},{0xAE6AC842L,0xAE370EDEL,0xAE6AC842L}},{{0x76D2AEFCL,0x2DB046CCL,0x76D2AEFCL},{0xAE6AC842L,0xAE370EDEL,0xAE6AC842L}}};
                uint32_t l_5969 = 0x20BFC581L;
                int i, j, k;
                (*g_5897) = (((safe_mul_func_int16_t_s_s(((safe_mul_func_int64_t_s_s((safe_add_func_int8_t_s_s((safe_div_func_uint32_t_u_u(((((0UL || (l_5882[1][1][0] , ((l_5776 = ((l_5883 , (((safe_sub_func_int64_t_s_s(((void*)0 != (*g_3402)), (safe_mod_func_uint64_t_u_u(((***g_5785) = (l_5888 >= ((safe_lshift_func_int32_t_s_s(l_5888, (((0xECL >= ((*l_5733) >= (*g_1973))) , l_5891) < 1UL))) >= 4L))), (**g_1266))))) ^ (*l_5733)) | 0x6B4BL)) < 0x941CL)) == l_5888))) , &g_2436[2][0][0]) != l_5892) == 0x19033AE9L), l_5888)), (*g_3514))), (*l_5733))) < (**g_3404)), l_5845)) ^ (*l_5733)) , l_5896);
                (*g_74) = func_22((*g_3405));
                for (g_960 = 17; (g_960 > 26); g_960 = safe_add_func_int16_t_s_s(g_960, 1))
                { /* block id: 2566 */
                    int8_t l_5907 = 0x99L;
                    uint64_t l_5922[10] = {1UL,0x1B58615349F080FCLL,1UL,1UL,0x1B58615349F080FCLL,1UL,1UL,0x1B58615349F080FCLL,1UL,1UL};
                    int32_t ***l_5944 = &g_1181[1];
                    int32_t l_5950 = 0x4726D450L;
                    int32_t l_5956 = 0xC508E783L;
                    int32_t l_5962 = 0x228BCE71L;
                    int32_t l_5964 = 1L;
                    int i;
                    l_5846 |= ((*l_5733) ^= (safe_rshift_func_int16_t_s_s(((safe_add_func_int16_t_s_s(((***g_4684) , (safe_mul_func_uint8_t_u_u((((((((**g_3513) = l_5907) ^ ((((*g_2998) = l_5908) != (((safe_mod_func_int32_t_s_s((((**g_1546) ^ ((safe_mul_func_uint16_t_u_u(l_5913, (safe_add_func_uint8_t_u_u(l_5888, (l_5776 || 0x476350C3L))))) , (safe_rshift_func_uint8_t_u_s(((safe_add_func_uint32_t_u_u(l_5888, l_5920)) | 7UL), l_5907)))) && l_5907), l_5776)) || (*g_375)) , l_5921)) , (****g_5898))) <= 0x94B92D9CL) < l_5778) , 1L) , l_5771[0][4]), (-1L)))), (*g_3405))) <= l_5922[7]), 12)));
                    (*l_5290) = func_22(((*g_3405) = (safe_mod_func_uint32_t_u_u(l_5907, (safe_add_func_uint16_t_u_u(l_5927, ((0L < (&g_5819 == l_5928)) & l_5929[4][8])))))));
                    if (l_5927)
                    { /* block id: 2573 */
                        uint16_t l_5947 = 1UL;
                        int32_t l_5951 = 0x9DD1A2CEL;
                        int32_t *l_5953 = &g_11;
                        int32_t *l_5954 = (void*)0;
                        int32_t *l_5955[6] = {(void*)0,(void*)0,&l_5951,(void*)0,(void*)0,&l_5951};
                        int32_t l_5960[5];
                        int i;
                        for (i = 0; i < 5; i++)
                            l_5960[i] = 0L;
                        l_5949 |= (safe_mul_func_uint64_t_u_u((6UL == (+(((~(((****l_5893) &= ((*l_5733) == ((*g_5562) != ((**g_1546) = (!(0x3AL || (((*g_1973) ^= (safe_mod_func_uint16_t_u_u((l_5922[3] , (((safe_mod_func_uint64_t_u_u((l_5941 , (safe_add_func_int16_t_s_s((l_5944 == ((*g_2999) = (*g_2999))), ((safe_unary_minus_func_int16_t_s(((safe_unary_minus_func_uint16_t_u(l_5947)) >= l_5851))) >= 0x4B24BE9DD6894930LL)))), l_5947)) == l_5948) , l_5929[0][6])), (****g_4683)))) | l_5947))))))) || 0x3AL)) & l_5888) == l_5845))), 0x7FB86E4E5444CC1FLL));
                        (*l_5733) |= 1L;
                        --g_5965;
                    }
                    else
                    { /* block id: 2581 */
                        int32_t *l_5968 = &l_5778;
                        l_5968 = func_22(((**g_3404) = (**g_3404)));
                    }
                }
                (*l_5733) = l_5969;
            }
        }
        else
        { /* block id: 2588 */
            uint32_t l_5976 = 0UL;
            for (g_214 = (-29); (g_214 <= 22); g_214++)
            { /* block id: 2591 */
                (*g_275) = (safe_mod_func_int64_t_s_s(l_5920, ((safe_rshift_func_int16_t_s_s(((**g_1254) = l_5976), 4)) , ((*g_1973) = (*l_5733)))));
                (*l_5733) = l_5845;
            }
            for (g_5074 = 0; (g_5074 <= 5); g_5074 += 1)
            { /* block id: 2599 */
                int32_t *l_5977 = &l_5065[3];
                int16_t *l_5984 = &g_185;
                int32_t l_5987 = 0x42E16230L;
                int i;
                for (g_484 = 2; (g_484 <= 6); g_484 += 1)
                { /* block id: 2602 */
                    int32_t * const l_5978 = &l_5851;
                    for (l_5289 = 0; (l_5289 <= 6); l_5289 += 1)
                    { /* block id: 2605 */
                        int32_t **l_5979 = &g_1000[8][2][6];
                        int i, j;
                        (*g_74) = l_5977;
                        (*l_5979) = l_5978;
                    }
                }
                l_5988 |= (((safe_mul_func_int64_t_s_s(((void*)0 == &g_4683), ((void*)0 != (*g_5598)))) == ((((((safe_mul_func_int64_t_s_s((((((**l_5288) &= ((*g_5562) , 255UL)) && (*l_5977)) , (g_5985[0][3][1] = l_5984)) != l_5986), 0x370E02E0464DD0C5LL)) , 0xCF33L) || 0xDFB6L) && 0xF1099765L) == l_5987) < (*l_5733))) | (**g_1254));
            }
            return l_5989;
        }
    }
    (*g_275) = (safe_sub_func_uint16_t_u_u(((l_5993[1] = ((*g_3405) = ((*g_1255) = l_5992))) ^ ((*l_5733) , (*l_5733))), (safe_mul_func_int32_t_s_s((safe_add_func_int8_t_s_s((((((**g_4683) == (void*)0) ^ (*l_5733)) , (((((safe_sub_func_int16_t_s_s((safe_unary_minus_func_uint64_t_u(((*g_1973)--))), (safe_lshift_func_int32_t_s_s(((~(*l_5733)) < (*l_5733)), (*l_5733))))) <= (*l_5733)) ^ (*l_5733)) & (*l_5733)) < (*l_5733))) && (**g_3513)), 0x3DL)), (*l_5733)))));
    return (*g_3514);
}


/* ------------------------------------------ */
/* 
 * reads : g_11 g_4 g_74 g_80 g_75 g_106 g_83 g_122 g_111 g_172 g_185 g_188 g_200 g_214 g_184 g_789 g_1217 g_1218 g_1216 g_1254 g_1266 g_778 g_779 g_496 g_485 g_275 g_276 g_1255 g_1325 g_375 g_376 g_1267 g_1358 g_210 g_274 g_1533 g_1294 g_1546 g_1547 g_492 g_490 g_1527 g_960 g_486 g_1062 g_692 g_693 g_1324 g_1836 g_1608 g_1627 g_1878 g_820 g_1887 g_484 g_487 g_2269 g_2270 g_1385 g_222 g_2998 g_2999 g_1545 g_1973 g_2619 g_2620 g_2621 g_3346 g_3356 g_173 g_174 g_3402 g_3404 g_3405 g_3445 g_374 g_2609 g_3479 g_3500 g_3511 g_3520 g_3439 g_175 g_2435 g_2436 g_3607 g_3608 g_3513 g_3514 g_1534 g_4013 g_4059 g_3622 g_2901 g_1833 g_4083 g_3000 g_2357 g_1972 g_3903 g_483 g_4968 g_695 g_1419 g_3902 g_4685 g_5054
 * writes: g_11 g_80 g_83 g_4 g_106 g_185 g_196 g_200 g_209 g_222 g_789 g_184 g_111 g_1324 g_960 g_75 g_483 g_1350 g_276 g_1294 g_492 g_490 g_1527 g_486 g_1062 g_376 g_1833 g_1608 g_1000 g_1887 g_210 g_496 g_1836 g_2999 g_1325 g_3346 g_3356 g_820 g_2621 g_2609 g_3479 g_3506 g_3511 g_2619 g_3439 g_214 g_3622 g_1521 g_330 g_2270 g_3608 g_3943 g_4013 g_4059 g_2357 g_484 g_3903 g_3445 g_3607 g_694 g_1419 g_175
 */
static int32_t  func_2(uint8_t  p_3)
{ /* block id: 1 */
    int8_t l_9 = (-9L);
    int32_t *l_10 = &g_11;
    int32_t **l_18 = (void*)0;
    int32_t *l_19 = &g_11;
    uint32_t *l_1904 = &g_83;
    int32_t l_3222 = 0L;
    int32_t l_3224 = 0x9D10D853L;
    int8_t *l_4344 = &g_184;
    uint64_t l_5062[10][1][4] = {{{0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL}},{{0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL}},{{0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL}},{{0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL}},{{0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL}},{{0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL}},{{0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL}},{{0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL}},{{0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL}},{{0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL,0x3975A269809C4F13LL}}};
    uint32_t l_5063 = 0UL;
    int i, j, k;
    l_5062[4][0][0] ^= (((func_5((safe_mod_func_int16_t_s_s(((((*l_4344) = (((*l_10) = l_9) , ((***g_1545) = func_12((l_10 = l_10), l_19, p_3, ((safe_rshift_func_int16_t_s_u(((void*)0 == &l_19), 12)) , func_22(((!(safe_mod_func_uint8_t_u_u(((((func_27(func_30(((*l_1904) = func_34(&g_11, (func_39((g_83 = ((g_11 , func_45((safe_rshift_func_int64_t_s_s(((((safe_unary_minus_func_uint64_t_u(p_3)) != g_4) , p_3) != (*l_19)), (*l_19))))) == g_4)), &l_19, g_4, p_3, &l_19) & g_214), (*g_74), g_184)), p_3, g_487), &l_19) | p_3) , (-9L)) , p_3) <= p_3), l_3222))) , p_3))), l_3224)))) , (*l_10)) == p_3), 0x8CFCL))) & p_3) != p_3) , (*l_19));
    return l_5063;
}


/* ------------------------------------------ */
/* 
 * reads : g_1216 g_1217 g_1218 g_3404 g_3405 g_1062 g_693 g_375 g_376 g_2619 g_2620 g_2621 g_11 g_83 g_1325 g_778 g_779 g_275 g_4968 g_695 g_692 g_1385 g_222 g_3514 g_214 g_1419 g_3622 g_74 g_3902 g_188 g_175 g_3520 g_276 g_3607 g_4685 g_5054 g_3445 g_2357 g_483 g_1527 g_3608
 * writes: g_3445 g_2357 g_483 g_3607 g_1527 g_3608 g_960 g_1324 g_184 g_694 g_376 g_276 g_11 g_83 g_1325 g_106 g_1419 g_75 g_3903 g_175 g_492 g_196
 */
static int8_t  func_5(uint32_t  p_6)
{ /* block id: 1905 */
    uint64_t l_4360 = 18446744073709551610UL;
    int32_t l_4424 = (-1L);
    int32_t l_4425 = 0x605E9EEDL;
    int32_t l_4427 = (-4L);
    int32_t l_4428 = 0x46A83392L;
    int32_t *****l_4560 = &g_2999;
    uint32_t l_4561 = 0xEDF812D6L;
    int32_t l_4589 = 1L;
    int32_t l_4615 = (-8L);
    int32_t l_4616 = 0L;
    int32_t l_4617[3];
    const uint64_t *l_4623[7];
    uint16_t ** const l_4631[10][3] = {{&g_3508[0][3],&g_3508[0][3],&g_3508[0][3]},{&g_3508[1][0],&g_3508[1][4],&g_3508[1][0]},{&g_3508[0][3],&g_3508[0][3],&g_3508[0][3]},{&g_3508[1][0],&g_3508[1][4],&g_3508[1][0]},{&g_3508[0][3],&g_3508[0][3],&g_3508[0][3]},{&g_3508[1][0],&g_3508[1][4],&g_3508[1][0]},{&g_3508[0][3],&g_3508[0][3],&g_3508[0][3]},{&g_3508[1][0],&g_3508[1][4],&g_3508[1][0]},{&g_3508[0][3],&g_3508[0][3],&g_3508[0][3]},{&g_3508[1][0],&g_3508[1][4],&g_3508[1][0]}};
    uint32_t **l_4669 = &g_222;
    int16_t * const l_4705 = &g_960;
    uint16_t ***l_4738 = (void*)0;
    uint16_t ****l_4737 = &l_4738;
    int16_t l_4745 = 0x3E97L;
    const uint32_t *l_4748[6][4] = {{&g_1325[0][1],&g_1325[0][1],(void*)0,&g_1325[0][1]},{&g_1325[0][1],&g_1325[0][1],(void*)0,(void*)0},{&g_1325[0][1],&g_1325[0][1],&g_1325[0][1],(void*)0},{(void*)0,&g_1325[0][1],(void*)0,&g_1325[0][1]},{(void*)0,&g_1325[0][1],&g_1325[0][1],(void*)0},{&g_1325[0][1],&g_1325[0][1],(void*)0,&g_1325[0][1]}};
    const uint32_t **l_4747 = &l_4748[1][0];
    uint32_t l_4751[10][8][3] = {{{0x6E547D96L,1UL,0x44F5B5EBL},{18446744073709551615UL,18446744073709551615UL,0x52B8F0E4L},{0xB28FD9C1L,5UL,0UL},{6UL,18446744073709551615UL,0xE344CDA0L},{18446744073709551615UL,5UL,0UL},{18446744073709551608UL,18446744073709551615UL,18446744073709551615UL},{8UL,1UL,18446744073709551614UL},{0xB927AC10L,18446744073709551615UL,0x1977CE05L}},{{0UL,5UL,1UL},{3UL,18446744073709551615UL,18446744073709551609UL},{18446744073709551614UL,5UL,18446744073709551607UL},{0x26FC267DL,18446744073709551615UL,18446744073709551615UL},{0x091BF218L,1UL,0xDDA4F0EBL},{0xAD9D6743L,18446744073709551615UL,0xB7AE6A7BL},{0UL,5UL,5UL},{0xB2EA1C02L,18446744073709551615UL,3UL}},{{18446744073709551606UL,0UL,1UL},{18446744073709551615UL,1UL,0xCC3E0D80L},{18446744073709551607UL,0x79E9465FL,18446744073709551615UL},{0xE344CDA0L,1UL,0x5A0EDB4CL},{5UL,0UL,0UL},{0x1977CE05L,0xCC3E0D80L,0x3721D20CL},{0x44F5B5EBL,0UL,0x7B468717L},{18446744073709551615UL,1UL,1UL}},{{0UL,0x79E9465FL,0xCB1FA5C1L},{3UL,1UL,18446744073709551615UL},{1UL,0UL,0x79E9465FL},{0x52B8F0E4L,0xCC3E0D80L,18446744073709551615UL},{0xDDA4F0EBL,0UL,0x2A65CF1CL},{18446744073709551615UL,1UL,0x1B3F7175L},{0x8509A36CL,0x79E9465FL,0x3F0A2552L},{18446744073709551609UL,1UL,0xFCA8D952L}},{{0UL,0UL,0UL},{0xB7AE6A7BL,0xCC3E0D80L,1UL},{18446744073709551614UL,0UL,1UL},{18446744073709551615UL,1UL,0xCC3E0D80L},{18446744073709551607UL,0x79E9465FL,18446744073709551615UL},{0xE344CDA0L,1UL,0x5A0EDB4CL},{5UL,0UL,0UL},{0x1977CE05L,0xCC3E0D80L,0x3721D20CL}},{{0x44F5B5EBL,0UL,0x7B468717L},{18446744073709551615UL,1UL,1UL},{0UL,0x79E9465FL,0xCB1FA5C1L},{3UL,1UL,18446744073709551615UL},{1UL,0UL,0x79E9465FL},{0x52B8F0E4L,0xCC3E0D80L,18446744073709551615UL},{0xDDA4F0EBL,0UL,0x2A65CF1CL},{18446744073709551615UL,1UL,0x1B3F7175L}},{{0x8509A36CL,0x79E9465FL,0x3F0A2552L},{18446744073709551609UL,1UL,0xFCA8D952L},{0UL,0UL,0UL},{0xB7AE6A7BL,0xCC3E0D80L,1UL},{18446744073709551614UL,0UL,1UL},{18446744073709551615UL,1UL,0xCC3E0D80L},{18446744073709551607UL,0x79E9465FL,18446744073709551615UL},{0xE344CDA0L,1UL,0x5A0EDB4CL}},{{5UL,0UL,0UL},{0x1977CE05L,0xCC3E0D80L,0x3721D20CL},{0x44F5B5EBL,0UL,0x7B468717L},{18446744073709551615UL,1UL,1UL},{0UL,0x79E9465FL,0xCB1FA5C1L},{3UL,1UL,18446744073709551615UL},{1UL,0UL,0x79E9465FL},{0x52B8F0E4L,0xCC3E0D80L,18446744073709551615UL}},{{0xDDA4F0EBL,0UL,0x2A65CF1CL},{18446744073709551615UL,1UL,0x1B3F7175L},{0x8509A36CL,0x79E9465FL,0x3F0A2552L},{18446744073709551609UL,1UL,0xFCA8D952L},{0UL,0UL,0UL},{0xB7AE6A7BL,0xCC3E0D80L,1UL},{18446744073709551614UL,0UL,1UL},{18446744073709551615UL,1UL,0xCC3E0D80L}},{{18446744073709551607UL,0x79E9465FL,18446744073709551615UL},{0xE344CDA0L,1UL,0x5A0EDB4CL},{5UL,0UL,0UL},{0x1977CE05L,0xCC3E0D80L,0x3721D20CL},{0x44F5B5EBL,0UL,0x7B468717L},{18446744073709551615UL,1UL,1UL},{0UL,0x79E9465FL,0xCB1FA5C1L},{3UL,1UL,18446744073709551615UL}}};
    int16_t l_4772 = 0xE677L;
    uint32_t l_4790 = 0x70CE53FDL;
    uint32_t l_4791 = 0x0C1DBC7AL;
    uint32_t l_4809 = 0x847CF7C5L;
    int8_t l_4879 = 0x3FL;
    uint16_t l_4883 = 0xB4ECL;
    uint32_t l_4986 = 0xFF85A4B3L;
    int i, j, k;
    for (i = 0; i < 3; i++)
        l_4617[i] = 0x559BFEC4L;
    for (i = 0; i < 7; i++)
        l_4623[i] = &l_4360;
lbl_4624:
    for (g_3445 = 0; (g_3445 <= 1); g_3445 += 1)
    { /* block id: 1908 */
        uint8_t l_4359 = 0x8AL;
        const int32_t *l_4362 = &g_1294;
        const int8_t * const * const *l_4368 = (void*)0;
        int32_t l_4420 = 0x73BD7D42L;
        int32_t l_4421 = 0x0E585CE4L;
        int32_t l_4426 = 0xF87E6ECFL;
        for (g_2357 = 0; (g_2357 <= 1); g_2357 += 1)
        { /* block id: 1911 */
            uint64_t * const ***l_4346[2];
            uint64_t * const ****l_4345 = &l_4346[1];
            int32_t l_4352[3];
            int8_t ***l_4369 = &g_1521;
            uint32_t ***l_4401 = &g_1385;
            int32_t l_4412 = 0x3F5D10A1L;
            int i;
            for (i = 0; i < 2; i++)
                l_4346[i] = (void*)0;
            for (i = 0; i < 3; i++)
                l_4352[i] = (-2L);
        }
    }
    for (g_483 = 0; (g_483 <= 1); g_483 += 1)
    { /* block id: 1950 */
        const int32_t l_4442[10] = {1L,1L,1L,1L,1L,1L,1L,1L,1L,1L};
        int16_t l_4454[9];
        int32_t l_4474 = 7L;
        int32_t **l_4497 = &g_1000[0][0][1];
        int64_t l_4504[4][6] = {{(-2L),8L,8L,(-1L),(-1L),(-1L)},{0x4E5C6C04AABEBE78LL,0x100E0D19FF5B81F5LL,0x4E5C6C04AABEBE78LL,0L,(-1L),0xE3FD15A72F55A4FBLL},{8L,8L,(-2L),0x4E5C6C04AABEBE78LL,0x4E5C6C04AABEBE78LL,(-2L)},{1L,1L,0L,0x4E5C6C04AABEBE78LL,8L,0L}};
        int32_t l_4506 = 8L;
        int32_t l_4507 = (-10L);
        int32_t l_4509[10] = {0x09C9EC67L,0x09C9EC67L,0x745EA026L,0xD8D75F91L,0x745EA026L,0x09C9EC67L,0x09C9EC67L,0x745EA026L,0xD8D75F91L,0x745EA026L};
        const uint32_t l_4520 = 4294967295UL;
        uint16_t l_4628 = 1UL;
        int16_t **l_4633 = (void*)0;
        uint8_t *****l_4652 = (void*)0;
        int32_t l_4714 = 0L;
        uint16_t ***l_4736[2];
        uint16_t ****l_4735[5];
        int i, j;
        for (i = 0; i < 9; i++)
            l_4454[i] = 0x3983L;
        for (i = 0; i < 2; i++)
            l_4736[i] = &g_2522;
        for (i = 0; i < 5; i++)
            l_4735[i] = &l_4736[1];
        if (p_6)
            break;
        for (g_3607 = 0; (g_3607 >= 0); g_3607 -= 1)
        { /* block id: 1954 */
            int32_t l_4453 = 0xED5BF084L;
            int32_t l_4461 = 0xDEFB579EL;
            int32_t l_4475 = 1L;
            const int32_t **l_4498[4] = {&g_3903[2][0][5],&g_3903[2][0][5],&g_3903[2][0][5],&g_3903[2][0][5]};
            int32_t l_4511 = 0x6FE10FCAL;
            int32_t l_4513 = (-1L);
            int32_t l_4514[10];
            int64_t *l_4575 = &g_376[1][1];
            int16_t ** const *l_4582 = &g_3404;
            int16_t ** const **l_4581 = &l_4582;
            int32_t ***l_4606[10][10] = {{&g_1181[1],&g_1181[1],&g_74,&g_1181[1],&g_1181[0],&g_74,&l_4497,&g_74,&g_1181[0],&g_1181[1]},{&g_74,&l_4497,&g_74,&g_1181[0],&g_1181[1],&g_74,&g_1181[1],&g_1181[1],&g_1181[0],&g_1181[0]},{&g_1181[1],&l_4497,(void*)0,&g_1181[1],&g_1181[1],(void*)0,&l_4497,&g_1181[1],(void*)0,&g_1181[1]},{&g_1181[1],&g_1181[1],&g_74,&g_1181[1],&g_1181[0],&g_74,&l_4497,&g_74,&g_1181[0],&g_1181[1]},{&g_74,&l_4497,&g_74,&g_1181[0],&g_1181[1],&g_74,&g_1181[1],&g_1181[1],&g_1181[0],&g_1181[0]},{&g_1181[1],&l_4497,(void*)0,&g_1181[1],&g_1181[1],(void*)0,&l_4497,&g_1181[1],(void*)0,&g_1181[1]},{&g_1181[1],&g_1181[1],&g_74,&g_1181[1],&g_1181[0],&g_74,&l_4497,&g_74,&g_1181[0],&g_1181[1]},{&g_74,&l_4497,&g_74,&g_1181[0],&g_1181[1],&g_74,&g_1181[1],&g_1181[1],&g_1181[0],&g_1181[0]},{&g_1181[1],&l_4497,(void*)0,&g_1181[1],&g_1181[1],(void*)0,&l_4497,&g_1181[1],(void*)0,&g_1181[1]},{&g_1181[1],&g_1181[1],&g_74,&g_1181[1],&g_1181[0],&g_74,&l_4497,&g_74,&g_1181[0],&g_1181[1]}};
            uint64_t l_4621 = 0UL;
            uint8_t *****l_4651[8][8] = {{&g_3511[0],&g_3511[0],&g_3511[1],&g_3511[0],&g_3511[0],(void*)0,&g_3511[0],&g_3511[0]},{&g_3511[0],&g_3511[0],(void*)0,&g_3511[0],&g_3511[0],(void*)0,&g_3511[0],&g_3511[0]},{&g_3511[0],&g_3511[0],&g_3511[1],&g_3511[0],&g_3511[0],(void*)0,&g_3511[0],&g_3511[0]},{&g_3511[0],&g_3511[0],(void*)0,&g_3511[0],&g_3511[0],(void*)0,&g_3511[0],&g_3511[0]},{&g_3511[0],&g_3511[0],&g_3511[1],&g_3511[0],&g_3511[0],(void*)0,&g_3511[0],&g_3511[0]},{&g_3511[0],&g_3511[0],(void*)0,&g_3511[0],&g_3511[0],(void*)0,&g_3511[0],&g_3511[0]},{&g_3511[0],&g_3511[0],&g_3511[1],&g_3511[0],&g_3511[0],(void*)0,&g_3511[0],&g_3511[0]},{&g_3511[0],&g_3511[0],(void*)0,&g_3511[0],&g_3511[0],(void*)0,&g_3511[0],&g_3511[0]}};
            uint8_t *****l_4653 = &g_3511[4];
            int64_t *l_4657 = &g_330[1][8];
            uint32_t **l_4670 = &g_222;
            uint32_t **l_4671 = &g_222;
            uint32_t l_4676 = 0x2F471514L;
            const int8_t l_4728[3] = {(-1L),(-1L),(-1L)};
            uint32_t ***** const l_4820 = &g_2269;
            const int32_t l_4878 = 0x65F4CD15L;
            int16_t l_4880 = 1L;
            const uint32_t l_4881 = 4294967295UL;
            uint64_t l_4882[4] = {0xA1C2170BD0FD83DBLL,0xA1C2170BD0FD83DBLL,0xA1C2170BD0FD83DBLL,0xA1C2170BD0FD83DBLL};
            int i, j;
            for (i = 0; i < 10; i++)
                l_4514[i] = 0L;
        }
    }
    for (g_1527 = 8; (g_1527 == (-15)); g_1527 = safe_sub_func_int32_t_s_s(g_1527, 4))
    { /* block id: 2121 */
        int32_t l_4907[8] = {(-1L),7L,(-1L),7L,(-1L),7L,(-1L),7L};
        int32_t l_4908 = (-1L);
        uint64_t l_5002[1];
        int32_t l_5021[6];
        uint32_t l_5023 = 18446744073709551609UL;
        uint64_t l_5033 = 3UL;
        int i;
        for (i = 0; i < 1; i++)
            l_5002[i] = 1UL;
        for (i = 0; i < 6; i++)
            l_5021[i] = 6L;
        for (g_3608 = 1; (g_3608 <= 6); g_3608 += 1)
        { /* block id: 2124 */
            uint32_t l_4894[1][8][5];
            const uint32_t l_4895 = 0x9CC23955L;
            int32_t l_4904[4];
            int32_t l_4905 = 0x91690E1CL;
            const uint32_t *l_4935[3][10][8] = {{{&l_4751[1][6][2],&l_4751[6][3][1],&g_494[0],&g_489[3][6],(void*)0,&g_488[1][0],&g_488[1][0],&g_489[2][2]},{&l_4894[0][1][3],(void*)0,&g_494[0],&g_483,&g_497,(void*)0,&l_4751[1][6][2],&l_4894[0][1][3]},{(void*)0,&g_485,&l_4894[0][1][3],&l_4751[2][0][1],&g_493,&l_4894[0][1][3],&g_491[1],&l_4894[0][6][0]},{&g_106,&g_496,&g_488[6][1],&g_485,&g_490,&g_4609,(void*)0,&g_489[3][6]},{&l_4751[9][4][0],&g_496,(void*)0,(void*)0,&g_488[6][1],&l_4894[0][1][3],&g_488[6][1],(void*)0},{(void*)0,&g_485,(void*)0,&g_494[0],&l_4894[0][1][3],(void*)0,(void*)0,(void*)0},{&g_493,(void*)0,&g_106,(void*)0,&l_4894[0][1][3],&g_488[1][0],&l_4894[0][1][3],&g_496},{&g_493,&l_4751[6][3][1],&g_491[1],&g_491[1],&l_4894[0][1][3],&l_4790,&g_490,&g_488[1][0]},{(void*)0,&g_489[2][2],(void*)0,&l_4894[0][6][0],&g_488[6][1],&l_4751[6][3][1],&g_483,&g_483},{&l_4751[9][4][0],&g_483,&l_4894[0][1][3],&l_4751[6][3][1],&g_490,&g_496,&l_4894[0][1][3],&g_483}},{{&g_106,&g_488[1][0],&g_495,&l_4894[0][6][0],&g_493,&l_4894[0][6][0],&g_495,&g_488[1][0]},{(void*)0,&g_4609,&g_493,&g_491[1],&g_497,&g_494[0],&g_491[1],&g_496},{&l_4894[0][1][3],&l_4790,&g_491[1],(void*)0,(void*)0,(void*)0,&g_491[1],(void*)0},{&l_4751[1][6][2],(void*)0,&g_493,&g_494[0],&g_495,(void*)0,&g_495,(void*)0},{&g_495,(void*)0,&g_495,(void*)0,(void*)0,&g_491[1],&l_4894[0][1][3],&g_489[3][6]},{&g_495,&g_483,&l_4894[0][1][3],&g_485,&l_4751[1][6][2],&g_491[1],&g_483,&l_4894[0][6][0]},{&g_490,(void*)0,(void*)0,&l_4751[2][0][1],(void*)0,(void*)0,&g_490,&l_4894[0][1][3]},{&g_488[1][0],(void*)0,&g_491[1],&g_483,&g_483,(void*)0,&l_4894[0][1][3],&g_489[2][2]},{(void*)0,&l_4790,&g_106,&g_489[3][6],&g_483,&g_494[0],(void*)0,&l_4751[2][0][1]},{&g_488[1][0],&g_4609,&g_497,&l_4894[0][1][3],&g_491[1],&g_489[2][2],&g_488[1][0],&g_488[1][0]}},{{&g_494[0],&l_4790,&g_491[1],&g_485,&g_495,&g_483,&g_488[6][1],(void*)0},{&g_495,(void*)0,&g_488[1][0],&g_485,&g_497,&g_488[1][0],&l_4751[9][4][0],&g_488[1][0]},{(void*)0,&l_4894[0][1][3],&g_494[1],&l_4894[0][1][3],(void*)0,&g_4609,&g_495,(void*)0},{&g_495,&g_488[1][0],&g_106,&g_488[1][0],(void*)0,&l_4790,(void*)0,&l_4894[0][1][3]},{&g_494[1],&l_4894[0][6][0],&g_106,(void*)0,&g_490,(void*)0,&g_495,&l_4894[0][1][3]},{(void*)0,&g_487,&g_494[1],(void*)0,&l_4894[0][1][3],(void*)0,&l_4751[9][4][0],&g_489[2][2]},{&l_4751[1][6][2],&g_483,&g_488[1][0],&g_487,&g_493,&g_483,&g_488[6][1],&g_488[1][0]},{&g_483,&g_483,&g_491[1],(void*)0,&g_488[1][0],(void*)0,&g_488[1][0],(void*)0},{&g_497,&g_487,&g_497,&l_4751[6][3][1],(void*)0,(void*)0,(void*)0,&l_4894[0][6][0]},{&l_4894[0][1][3],&l_4894[0][6][0],&l_4751[1][6][2],&g_494[0],&g_494[1],&l_4790,(void*)0,&g_483}}};
            const uint32_t **l_4934 = &l_4935[0][0][7];
            int32_t l_4949[1];
            uint8_t ***l_4980 = &g_3513;
            int i, j, k;
            for (i = 0; i < 1; i++)
            {
                for (j = 0; j < 8; j++)
                {
                    for (k = 0; k < 5; k++)
                        l_4894[i][j][k] = 0x45AF03F5L;
                }
            }
            for (i = 0; i < 4; i++)
                l_4904[i] = 0x3ADBBF24L;
            for (i = 0; i < 1; i++)
                l_4949[i] = 0xBEE9CE39L;
            for (g_960 = 6; (g_960 >= 0); g_960 -= 1)
            { /* block id: 2127 */
                int32_t l_4900[7][10][3] = {{{0x0390DED8L,5L,0x0390DED8L},{0L,(-1L),0x438567D3L},{0x4F2CA0CAL,0x2992FEA7L,6L},{(-1L),0x8C90092CL,(-1L)},{0x936C92C1L,0x1AE3D78DL,(-1L)},{(-1L),0L,0x8C90092CL},{0x4F2CA0CAL,0xA346DFB3L,(-6L)},{0L,0xAE52F326L,0xAE52F326L},{0x0390DED8L,1L,(-6L)},{0x438567D3L,0x3A0B7831L,0x8C90092CL}},{{6L,0xEC5BE7C9L,(-1L)},{(-1L),(-1L),(-1L)},{(-1L),0xEC5BE7C9L,6L},{0x8C90092CL,0x3A0B7831L,0x438567D3L},{(-6L),1L,0x0390DED8L},{0xAE52F326L,0xAE52F326L,0L},{(-6L),0xA346DFB3L,0x4F2CA0CAL},{0x8C90092CL,0L,(-1L)},{(-1L),0x1AE3D78DL,0x936C92C1L},{(-1L),0x8C90092CL,(-1L)}},{{6L,0x2992FEA7L,0x4F2CA0CAL},{0x438567D3L,(-1L),0L},{0x0390DED8L,5L,0x0390DED8L},{0L,(-1L),0x438567D3L},{0x4F2CA0CAL,0x2992FEA7L,6L},{(-1L),0x8C90092CL,(-1L)},{0x936C92C1L,0x1AE3D78DL,(-1L)},{(-1L),0L,0x8C90092CL},{0x4F2CA0CAL,0xA346DFB3L,(-6L)},{0L,0xAE52F326L,0xAE52F326L}},{{0x0390DED8L,1L,(-6L)},{0x438567D3L,0x3A0B7831L,0x8C90092CL},{6L,0xEC5BE7C9L,(-1L)},{(-1L),(-1L),(-1L)},{(-1L),0xEC5BE7C9L,6L},{(-1L),(-1L),(-1L)},{6L,5L,0L},{1L,1L,0xAE52F326L},{6L,0x1AE3D78DL,0xD6BC56F0L},{(-1L),0xAE52F326L,0x438567D3L}},{{0x936C92C1L,0x727FEAD6L,0x4F12D641L},{(-1L),(-1L),0x438567D3L},{0x0390DED8L,0x3BAE2503L,0xD6BC56F0L},{(-1L),0L,0xAE52F326L},{0L,0x6F5F419EL,0L},{0xAE52F326L,0L,(-1L)},{0xD6BC56F0L,0x3BAE2503L,0x0390DED8L},{0x438567D3L,(-1L),(-1L)},{0x4F12D641L,0x727FEAD6L,0x936C92C1L},{0x438567D3L,0xAE52F326L,(-1L)}},{{0xD6BC56F0L,0x1AE3D78DL,6L},{0xAE52F326L,1L,1L},{0L,5L,6L},{(-1L),(-1L),(-1L)},{0x0390DED8L,0xA346DFB3L,0x936C92C1L},{(-1L),(-1L),(-1L)},{0x936C92C1L,0xA346DFB3L,0x0390DED8L},{(-1L),(-1L),(-1L)},{6L,5L,0L},{1L,1L,0xAE52F326L}},{{6L,0x1AE3D78DL,0xD6BC56F0L},{(-1L),0xAE52F326L,0x438567D3L},{0x936C92C1L,0x727FEAD6L,0x4F12D641L},{(-1L),(-1L),0x438567D3L},{0x0390DED8L,0x3BAE2503L,0xD6BC56F0L},{(-1L),0L,0xAE52F326L},{0L,0x6F5F419EL,0L},{0xAE52F326L,0L,(-1L)},{0xD6BC56F0L,0x3BAE2503L,0x0390DED8L},{0x438567D3L,(-1L),(-1L)}}};
                int32_t *l_4903[1];
                const uint32_t l_4906 = 0x38407E5EL;
                int i, j, k;
                for (i = 0; i < 1; i++)
                    l_4903[i] = &l_4617[0];
                l_4908 = (l_4907[3] = (safe_div_func_uint16_t_u_u((p_6 < ((safe_lshift_func_int64_t_s_s(l_4894[0][1][3], ((((((l_4895 >= ((safe_sub_func_int32_t_s_s(p_6, (l_4894[0][1][3] | (safe_lshift_func_int8_t_s_s(p_6, 5))))) & l_4900[3][2][2])) >= p_6) , (l_4905 = (l_4904[1] = ((safe_add_func_int64_t_s_s(0x126749D14806D911LL, 0x0AE155518B4806A2LL)) ^ 0x8707A35DL)))) & (-4L)) > p_6) >= 0x61C5C6505C590FFBLL))) <= l_4906)), (**g_1216))));
            }
            if (p_6)
                continue;
            for (g_1324 = 6; (g_1324 >= 2); g_1324 -= 1)
            { /* block id: 2136 */
                uint8_t l_4918[8];
                int32_t l_4954[8];
                uint8_t ***l_4981 = &g_3513;
                uint32_t **l_5001 = &g_222;
                uint64_t *****l_5016 = (void*)0;
                int32_t *l_5022[10][10] = {{&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2]},{&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2]},{&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2]},{&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2]},{&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2]},{&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2]},{&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2]},{&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2]},{&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2]},{&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2],&l_4904[2]}};
                int i, j;
                for (i = 0; i < 8; i++)
                    l_4918[i] = 1UL;
                for (i = 0; i < 8; i++)
                    l_4954[i] = 0x91FC8655L;
                for (g_184 = 0; (g_184 <= 4); g_184 += 1)
                { /* block id: 2139 */
                    uint64_t l_4936 = 0x44C7E91EBDBC17F8LL;
                    int32_t l_4937[1];
                    uint32_t ** const *l_4979 = &l_4669;
                    uint32_t ** const **l_4978[10][9] = {{&l_4979,&l_4979,&l_4979,&l_4979,&l_4979,(void*)0,(void*)0,&l_4979,(void*)0},{&l_4979,&l_4979,(void*)0,(void*)0,&l_4979,&l_4979,(void*)0,&l_4979,&l_4979},{&l_4979,&l_4979,(void*)0,&l_4979,&l_4979,&l_4979,&l_4979,&l_4979,(void*)0},{&l_4979,&l_4979,(void*)0,&l_4979,(void*)0,&l_4979,(void*)0,&l_4979,&l_4979},{(void*)0,&l_4979,&l_4979,&l_4979,&l_4979,&l_4979,(void*)0,&l_4979,&l_4979},{&l_4979,&l_4979,(void*)0,&l_4979,&l_4979,(void*)0,(void*)0,&l_4979,&l_4979},{(void*)0,&l_4979,(void*)0,(void*)0,&l_4979,&l_4979,&l_4979,&l_4979,&l_4979},{&l_4979,&l_4979,(void*)0,(void*)0,(void*)0,(void*)0,&l_4979,&l_4979,&l_4979},{&l_4979,&l_4979,&l_4979,(void*)0,&l_4979,&l_4979,&l_4979,&l_4979,&l_4979},{&l_4979,&l_4979,&l_4979,&l_4979,&l_4979,&l_4979,&l_4979,&l_4979,&l_4979}};
                    uint64_t **l_5020 = &g_1973;
                    uint64_t ***l_5019 = &l_5020;
                    uint64_t ****l_5018 = &l_5019;
                    uint64_t *****l_5017 = &l_5018;
                    int i, j;
                    for (i = 0; i < 1; i++)
                        l_4937[i] = 7L;
                    if (((!p_6) >= (safe_mod_func_uint32_t_u_u((safe_div_func_int16_t_s_s(((safe_add_func_int16_t_s_s((safe_sub_func_uint16_t_u_u((p_6 , (l_4918[4] ^ ((safe_lshift_func_int16_t_s_s(((~(((safe_add_func_int32_t_s_s(((safe_mul_func_int8_t_s_s(p_6, (((p_6 < (-7L)) , (**g_3404)) , ((l_4936 = (safe_mod_func_int8_t_s_s((((((safe_mul_func_int64_t_s_s((safe_sub_func_int32_t_s_s(((safe_add_func_int8_t_s_s((((7L >= ((*g_375) &= ((((*g_693) = l_4934) != l_4669) , l_4907[1]))) , 0xDF85L) >= l_4918[4]), 0x91L)) , p_6), (***g_2619))), l_4918[4])) | p_6) || 0x94C05F9DL) , l_4907[3]) && 0x95L), p_6))) && l_4918[7])))) < l_4937[0]), p_6)) == l_4907[5]) <= p_6)) != 0x5A7042FAL), 5)) == p_6))), (**g_3404))), (-4L))) > (*g_778)), 0x3ED7L)), 0xD4AFAF8CL))))
                    { /* block id: 2143 */
                        (*g_275) = 3L;
                        if (l_4937[0])
                            break;
                        return p_6;
                    }
                    else
                    { /* block id: 2147 */
                        int64_t l_4958[9][5] = {{0x401E0BE68C23D4D3LL,1L,9L,0x1304749615BB4ED2LL,0x11303A171911DAB4LL},{0xFD3AC73DA63E426ALL,0L,0x16D10BE2CA35F359LL,0xFD3AC73DA63E426ALL,0x401E0BE68C23D4D3LL},{(-1L),0x1304749615BB4ED2LL,0xFC104854C87EA5D2LL,0xFC104854C87EA5D2LL,0x1304749615BB4ED2LL},{0x401E0BE68C23D4D3LL,0x35927EACF68DC70FLL,0xFC104854C87EA5D2LL,4L,9L},{0L,0x401E0BE68C23D4D3LL,0x16D10BE2CA35F359LL,(-10L),4L},{0L,0xFD3AC73DA63E426ALL,9L,(-1L),0x1304749615BB4ED2LL},{0L,(-1L),1L,0x1304749615BB4ED2LL,1L},{0x401E0BE68C23D4D3LL,0x401E0BE68C23D4D3LL,0L,0x1304749615BB4ED2LL,(-1L)},{(-1L),0L,0x35927EACF68DC70FLL,(-1L),0x401E0BE68C23D4D3LL}};
                        uint8_t *l_4989 = &g_1419;
                        int i, j;
                        (*g_275) = (safe_rshift_func_int16_t_s_u((safe_mod_func_uint16_t_u_u((safe_lshift_func_int8_t_s_u((safe_div_func_uint32_t_u_u(((+(((*g_375) &= (((safe_div_func_int8_t_s_s((l_4949[0] >= (((safe_sub_func_uint16_t_u_u(p_6, l_4894[0][1][3])) , (safe_rshift_func_int8_t_s_u((l_4954[1] = p_6), ((safe_rshift_func_uint64_t_u_s(((-5L) ^ (safe_unary_minus_func_int64_t_s(3L))), 62)) < ((**g_2620)--))))) , (safe_mod_func_int8_t_s_s(((safe_lshift_func_uint32_t_u_s(((!g_4968) > (!(((((**g_1385) = (safe_rshift_func_uint16_t_u_s(((65531UL | (safe_div_func_int32_t_s_s((safe_sub_func_uint16_t_u_u((safe_sub_func_uint16_t_u_u((l_4978[7][1] == (*g_695)), p_6)), 0L)), p_6))) != l_4937[0]), 4))) , l_4980) != l_4981) < 65528UL))), p_6)) > p_6), l_4937[0])))), p_6)) < 0UL) < l_4918[4])) != p_6)) || p_6), p_6)), l_4937[0])), 0x7C2EL)), 8));
                        (*g_3902) = func_22(((safe_mod_func_uint8_t_u_u((safe_div_func_uint16_t_u_u((l_4908 < (l_4986 , (*g_3514))), p_6)), 0x72L)) >= (((!((!((*l_4989)--)) , (safe_mod_func_int16_t_s_s((safe_div_func_int32_t_s_s((p_6 ^ ((((0UL >= (((*g_3622) |= ((safe_mul_func_uint64_t_u_u(l_4937[0], (!(((safe_add_func_int8_t_s_s(((void*)0 == l_5001), l_4937[0])) , 9L) & p_6)))) , p_6)) <= l_4958[3][0])) < l_5002[0]) || p_6) && 0x8EAAL)), 4294967295UL)), l_4907[3])))) >= p_6) >= p_6)));
                    }
                    (*g_188) = (*g_188);
                    for (g_492 = 0; (g_492 <= 4); g_492 += 1)
                    { /* block id: 2160 */
                        int32_t l_5003 = 0x0496623EL;
                        uint32_t **l_5015 = &g_3622;
                        (*g_188) = ((l_5003 & (((l_4904[0] &= 0x6B50CB0AL) == (((18446744073709551608UL != 18446744073709551615UL) , 0L) < (safe_lshift_func_uint64_t_u_u((~(safe_add_func_int32_t_s_s(((safe_sub_func_int16_t_s_s(((**g_3520) == ((p_6 ^ (l_4936 > ((safe_mod_func_uint64_t_u_u((safe_rshift_func_uint16_t_u_u(p_6, 10)), l_5003)) || l_4986))) , l_5015)), 0x7389L)) != l_5003), l_4954[6]))), 52)))) <= l_5003)) , (void*)0);
                        (*g_275) = l_5002[0];
                        (*g_275) &= (l_4908 = (l_4937[0] = (((p_6 > l_4907[2]) && 252UL) > ((l_5017 = l_5016) != (void*)0))));
                    }
                }
                l_5023++;
            }
            for (g_196 = 2; (g_196 <= 6); g_196 += 1)
            { /* block id: 2174 */
                uint8_t *****l_5026 = &g_3511[0];
                int32_t l_5034 = 0L;
                int32_t l_5056[9][2][6];
                int i, j, k;
                for (i = 0; i < 9; i++)
                {
                    for (j = 0; j < 2; j++)
                    {
                        for (k = 0; k < 6; k++)
                            l_5056[i][j][k] = 2L;
                    }
                }
                for (l_4879 = 0; (l_4879 <= 6); l_4879 += 1)
                { /* block id: 2177 */
                    int32_t l_5042 = 3L;
                    int32_t l_5057[5] = {(-7L),(-7L),(-7L),(-7L),(-7L)};
                    uint32_t l_5059[9][10][2] = {{{18446744073709551615UL,0x589908E8L},{18446744073709551615UL,7UL},{0xB706CCA6L,0x3054D9E7L},{18446744073709551607UL,0xA8AAB157L},{18446744073709551615UL,0xDD5A809DL},{1UL,0xDEF166F7L},{7UL,7UL},{3UL,0x7EBBBBD7L},{0xA06B2738L,0x0324BDE7L},{18446744073709551615UL,9UL}},{{2UL,18446744073709551615UL},{0x6C618263L,7UL},{0x6C618263L,18446744073709551615UL},{2UL,9UL},{18446744073709551615UL,0x0324BDE7L},{0xA06B2738L,0x7EBBBBD7L},{3UL,7UL},{7UL,0xDEF166F7L},{1UL,7UL},{18446744073709551615UL,3UL}},{{0UL,0xA06B2738L},{0xDEF166F7L,18446744073709551615UL},{0x3054D9E7L,2UL},{18446744073709551610UL,0x6C618263L},{18446744073709551615UL,0x6C618263L},{18446744073709551610UL,2UL},{0x3054D9E7L,18446744073709551615UL},{0xDEF166F7L,0xA06B2738L},{0UL,3UL},{18446744073709551615UL,7UL}},{{1UL,1UL},{18446744073709551615UL,18446744073709551615UL},{0x7EBBBBD7L,18446744073709551607UL},{0xBC1DF05EL,0xB706CCA6L},{18446744073709551615UL,18446744073709551615UL},{0UL,18446744073709551615UL},{0x589908E8L,18446744073709551615UL},{0x589908E8L,18446744073709551615UL},{0UL,18446744073709551615UL},{18446744073709551615UL,0xB706CCA6L}},{{0xBC1DF05EL,18446744073709551607UL},{0x7EBBBBD7L,18446744073709551615UL},{18446744073709551615UL,1UL},{1UL,7UL},{18446744073709551615UL,3UL},{0UL,0xA06B2738L},{0xDEF166F7L,18446744073709551615UL},{0x3054D9E7L,2UL},{18446744073709551610UL,0x6C618263L},{18446744073709551615UL,0x6C618263L}},{{18446744073709551610UL,2UL},{0x3054D9E7L,18446744073709551615UL},{0xDEF166F7L,0xA06B2738L},{0UL,3UL},{18446744073709551615UL,7UL},{1UL,1UL},{18446744073709551615UL,18446744073709551615UL},{0x7EBBBBD7L,18446744073709551607UL},{0xBC1DF05EL,0xB706CCA6L},{18446744073709551615UL,18446744073709551615UL}},{{0UL,18446744073709551615UL},{0x589908E8L,18446744073709551615UL},{0x589908E8L,18446744073709551615UL},{0UL,18446744073709551615UL},{18446744073709551615UL,0xB706CCA6L},{0xBC1DF05EL,18446744073709551607UL},{0x7EBBBBD7L,18446744073709551615UL},{18446744073709551615UL,1UL},{1UL,7UL},{18446744073709551615UL,3UL}},{{0UL,0xA06B2738L},{0xDEF166F7L,18446744073709551615UL},{0x3054D9E7L,2UL},{18446744073709551610UL,0x6C618263L},{18446744073709551615UL,0x6C618263L},{18446744073709551610UL,2UL},{0x3054D9E7L,18446744073709551615UL},{0xDEF166F7L,0xA06B2738L},{0UL,3UL},{18446744073709551615UL,7UL}},{{1UL,1UL},{18446744073709551615UL,18446744073709551615UL},{0x7EBBBBD7L,18446744073709551607UL},{0xBC1DF05EL,0xB706CCA6L},{18446744073709551615UL,18446744073709551615UL},{0UL,18446744073709551615UL},{0x589908E8L,18446744073709551615UL},{0x589908E8L,18446744073709551615UL},{0UL,18446744073709551615UL},{18446744073709551615UL,0xB706CCA6L}}};
                    int i, j, k;
                    if (g_3607)
                        goto lbl_4624;
                    if (p_6)
                    { /* block id: 2179 */
                        uint8_t * const *l_5030 = &g_3514;
                        uint8_t * const **l_5029[3][4] = {{&l_5030,&l_5030,&l_5030,&l_5030},{&l_5030,&l_5030,&l_5030,&l_5030},{&l_5030,&l_5030,&l_5030,&l_5030}};
                        uint8_t * const ***l_5028[10] = {&l_5029[0][3],&l_5029[0][3],&l_5029[0][3],&l_5029[0][3],&l_5029[0][3],&l_5029[0][3],&l_5029[0][3],&l_5029[0][3],&l_5029[0][3],&l_5029[0][3]};
                        uint8_t * const ****l_5027 = &l_5028[1];
                        int i, j;
                        if (l_4904[0])
                            break;
                        (*g_275) = ((((l_5026 = l_5026) == l_5027) | 0x0696D8D13EC9A7F5LL) & p_6);
                    }
                    else
                    { /* block id: 2183 */
                        int32_t l_5053 = (-1L);
                        int32_t l_5055 = (-6L);
                        int32_t *l_5058 = &l_4428;
                        l_4949[0] ^= ((safe_mod_func_int8_t_s_s(l_5033, p_6)) ^ (1L != (l_5055 &= (l_5034 | (safe_unary_minus_func_int16_t_s((safe_div_func_int64_t_s_s((((safe_mul_func_uint8_t_u_u(((safe_lshift_func_uint8_t_u_u((((((((l_5042 , ((p_6 > (l_4904[0] ^= ((((safe_mod_func_uint32_t_u_u(((safe_mod_func_uint64_t_u_u(0xC6BCAC7B63315FA1LL, (((safe_mul_func_int32_t_s_s(l_4905, (safe_add_func_int8_t_s_s((safe_mod_func_uint16_t_u_u(((l_5053 >= (*g_3622)) || l_5023), 0xA7A9L)), p_6)))) < p_6) | l_4907[3]))) | 18446744073709551610UL), 3UL)) < l_5042) | 0L) , 5UL))) | l_5042)) ^ p_6) , 0x245DL) || (**g_4685)) , 0xF2457C0EL) && l_4986) , (*g_3514)), p_6)) || g_5054), p_6)) & l_5021[5]) && 1UL), p_6))))))));
                        --l_5059[3][5][1];
                        if (p_6)
                            continue;
                    }
                    for (l_4425 = 2; (l_4425 <= 6); l_4425 += 1)
                    { /* block id: 2192 */
                        if (p_6)
                            break;
                    }
                }
            }
        }
    }
    return (*g_778);
}


/* ------------------------------------------ */
/* 
 * reads : g_1217 g_1218 g_11 g_2269 g_2270 g_1385 g_222 g_106 g_375 g_376 g_1255 g_960 g_2998 g_2999 g_496 g_74 g_1545 g_1546 g_1547 g_789 g_1254 g_275 g_276 g_1973 g_1836 g_2619 g_2620 g_2621 g_3346 g_3356 g_820 g_172 g_173 g_174 g_3402 g_1325 g_83 g_3404 g_3405 g_1062 g_1266 g_1267 g_111 g_3445 g_374 g_2609 g_3479 g_3500 g_3511 g_3520 g_3439 g_175 g_2435 g_2436 g_778 g_779 g_1216 g_3607 g_3608 g_3513 g_3514 g_214 g_1527 g_1533 g_1534 g_4013 g_4059 g_3622 g_2901 g_1833 g_4083 g_3000 g_2357 g_484 g_184 g_1972 g_3903 g_185 g_1324
 * writes: g_106 g_496 g_75 g_1836 g_2999 g_11 g_960 g_789 g_1324 g_276 g_1325 g_83 g_3346 g_3356 g_820 g_2621 g_376 g_2609 g_3479 g_185 g_111 g_3506 g_3511 g_1062 g_2619 g_3439 g_4 g_214 g_3622 g_184 g_1521 g_330 g_2270 g_1527 g_3608 g_3943 g_1608 g_4013 g_4059 g_2357 g_484 g_3903
 */
static int8_t  func_12(int32_t * p_13, int32_t * p_14, uint64_t  p_15, int32_t * p_16, int8_t  p_17)
{ /* block id: 1420 */
    int16_t l_3231 = 0x5547L;
    uint32_t l_3232 = 0xA2F026F7L;
    int32_t **** const l_3243 = &g_3000[8][1][1];
    uint8_t **l_3253 = (void*)0;
    uint8_t ***l_3252 = &l_3253;
    uint8_t ****l_3251 = &l_3252;
    int8_t l_3254 = 0xE5L;
    int32_t l_3257 = 0xE7036C3BL;
    int32_t l_3258 = 0xD894CC31L;
    uint8_t l_3266[7][6] = {{0xDDL,255UL,8UL,0xDDL,0x8EL,0x8EL},{0xF6L,255UL,255UL,0xF6L,0x8EL,8UL},{8UL,255UL,0x8EL,8UL,0x8EL,255UL},{0xDDL,255UL,8UL,0xDDL,0x8EL,0x8EL},{0xF6L,0xDAL,0xDAL,255UL,0xDCL,0x17L},{8UL,0xDAL,0xDCL,8UL,0xDCL,0xDAL},{0x8EL,0xDAL,0x17L,0x8EL,0xDCL,0xDCL}};
    int64_t *l_3268 = &g_330[1][8];
    const int8_t **l_3286 = (void*)0;
    int32_t l_3295 = (-3L);
    int32_t l_3297 = 0xA57D96EFL;
    int32_t l_3298 = 0xD015D6C0L;
    int32_t l_3299 = 0xC491B998L;
    int32_t l_3302 = 0xDC837658L;
    int32_t l_3303[5] = {0xA95F2216L,0xA95F2216L,0xA95F2216L,0xA95F2216L,0xA95F2216L};
    int64_t * const **l_3371 = &g_374[6][8];
    int64_t * const ***l_3370 = &l_3371;
    int64_t * const ****l_3369 = &l_3370;
    int16_t ** const l_3469 = &g_3405;
    uint64_t l_3482[4] = {0UL,0UL,0UL,0UL};
    uint32_t l_3483 = 0xDF378304L;
    uint16_t ** const *l_3501 = &g_2522;
    int32_t l_3562 = 0x3A11AD00L;
    int32_t l_3577 = 0x92BE38F5L;
    int8_t ***l_3611 = &g_1521;
    int8_t ****l_3610[7] = {&l_3611,&l_3611,&l_3611,&l_3611,&l_3611,&l_3611,&l_3611};
    int8_t *****l_3609 = &l_3610[3];
    uint16_t l_3668 = 1UL;
    int32_t l_3693 = 0x6862EFFEL;
    uint32_t ***l_3700 = (void*)0;
    uint32_t l_3706 = 0xEEBB6A98L;
    const uint8_t l_3735 = 255UL;
    uint64_t l_3738[3];
    int32_t l_3748[7][6] = {{0x1855342DL,0x1DAEDCFFL,0x1855342DL,(-4L),(-2L),(-4L)},{0x1855342DL,0x1DAEDCFFL,0x1855342DL,(-4L),(-2L),(-4L)},{0x1855342DL,0x1DAEDCFFL,0x1855342DL,(-4L),(-2L),(-4L)},{0x1855342DL,0x1DAEDCFFL,0x1855342DL,(-4L),(-2L),(-4L)},{0x1855342DL,0x1DAEDCFFL,0x1855342DL,(-4L),(-2L),(-4L)},{0x1855342DL,0x1DAEDCFFL,0x1855342DL,(-4L),(-2L),(-4L)},{0x1855342DL,0x1DAEDCFFL,0x1855342DL,(-4L),(-2L),(-4L)}};
    uint16_t l_3775 = 1UL;
    uint32_t l_3776 = 18446744073709551615UL;
    uint16_t * const **l_3832 = (void*)0;
    uint32_t ***l_3849 = (void*)0;
    int32_t l_3930 = 5L;
    const int16_t l_3948 = 5L;
    const uint16_t l_3951[10][4][1] = {{{0xD0B1L},{0x7E52L},{65535UL},{0xD0B1L}},{{65527UL},{65527UL},{0xD0B1L},{65535UL}},{{0x7E52L},{0xD0B1L},{0x7E52L},{65535UL}},{{0xD0B1L},{65527UL},{65527UL},{0xD0B1L}},{{65535UL},{0x7E52L},{0xD0B1L},{0x7E52L}},{{65535UL},{0xD0B1L},{65527UL},{65527UL}},{{0xD0B1L},{65535UL},{0x7E52L},{0xD0B1L}},{{0x7E52L},{65535UL},{0xD0B1L},{65527UL}},{{65527UL},{0xD0B1L},{65535UL},{0x7E52L}},{{0xD0B1L},{0x7E52L},{65535UL},{0xD0B1L}}};
    int32_t *l_3985 = &l_3303[4];
    int32_t *l_4012 = &l_3258;
    uint8_t *l_4014 = &g_1608;
    int8_t l_4026 = (-4L);
    uint64_t l_4047 = 0x18370AF873BFC2B8LL;
    uint64_t ****l_4062 = (void*)0;
    int64_t **l_4066 = &g_210;
    uint64_t * const *l_4185 = &g_1972[1];
    uint64_t * const **l_4184[7][10][3] = {{{(void*)0,(void*)0,(void*)0},{&l_4185,(void*)0,&l_4185},{&l_4185,&l_4185,&l_4185},{&l_4185,&l_4185,(void*)0},{(void*)0,(void*)0,&l_4185},{&l_4185,&l_4185,&l_4185},{&l_4185,&l_4185,&l_4185},{&l_4185,(void*)0,(void*)0},{(void*)0,&l_4185,&l_4185},{&l_4185,&l_4185,&l_4185}},{{&l_4185,(void*)0,&l_4185},{(void*)0,(void*)0,(void*)0},{&l_4185,(void*)0,&l_4185},{&l_4185,&l_4185,&l_4185},{&l_4185,&l_4185,(void*)0},{(void*)0,(void*)0,&l_4185},{&l_4185,&l_4185,&l_4185},{&l_4185,&l_4185,&l_4185},{&l_4185,(void*)0,(void*)0},{(void*)0,&l_4185,&l_4185}},{{&l_4185,&l_4185,&l_4185},{&l_4185,(void*)0,&l_4185},{(void*)0,(void*)0,(void*)0},{&l_4185,(void*)0,&l_4185},{&l_4185,&l_4185,&l_4185},{&l_4185,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0},{&l_4185,(void*)0,(void*)0},{(void*)0,(void*)0,&l_4185},{(void*)0,(void*)0,(void*)0}},{{(void*)0,(void*)0,&l_4185},{(void*)0,&l_4185,(void*)0},{(void*)0,&l_4185,(void*)0},{(void*)0,&l_4185,(void*)0},{(void*)0,&l_4185,(void*)0},{(void*)0,&l_4185,(void*)0},{&l_4185,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0},{&l_4185,(void*)0,(void*)0},{(void*)0,(void*)0,&l_4185}},{{(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,&l_4185},{(void*)0,&l_4185,(void*)0},{(void*)0,&l_4185,(void*)0},{(void*)0,&l_4185,(void*)0},{(void*)0,&l_4185,(void*)0},{(void*)0,&l_4185,(void*)0},{&l_4185,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0},{&l_4185,(void*)0,(void*)0}},{{(void*)0,(void*)0,&l_4185},{(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,&l_4185},{(void*)0,&l_4185,(void*)0},{(void*)0,&l_4185,(void*)0},{(void*)0,&l_4185,(void*)0},{(void*)0,&l_4185,(void*)0},{(void*)0,&l_4185,(void*)0},{&l_4185,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0}},{{&l_4185,(void*)0,(void*)0},{(void*)0,(void*)0,&l_4185},{(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,&l_4185},{(void*)0,&l_4185,(void*)0},{(void*)0,&l_4185,(void*)0},{(void*)0,&l_4185,(void*)0},{(void*)0,&l_4185,(void*)0},{(void*)0,&l_4185,(void*)0},{&l_4185,(void*)0,(void*)0}}};
    uint64_t * const ***l_4183 = &l_4184[6][5][2];
    uint64_t * const ****l_4182 = &l_4183;
    int8_t l_4206 = 0x09L;
    uint32_t l_4300 = 18446744073709551615UL;
    uint8_t l_4341 = 0x47L;
    int i, j, k;
    for (i = 0; i < 3; i++)
        l_3738[i] = 0x1842030A6BF73ED1LL;
    if ((safe_div_func_int64_t_s_s((safe_mod_func_uint8_t_u_u((safe_sub_func_int64_t_s_s(l_3231, l_3232)), (((-10L) ^ ((*g_1217) != 0x98B0L)) , ((*p_14) || ((safe_mod_func_int8_t_s_s((((safe_mul_func_int8_t_s_s((safe_rshift_func_int32_t_s_u((safe_div_func_uint32_t_u_u((((--(****g_2269)) , l_3243) != (((((((safe_sub_func_int16_t_s_s((((safe_mul_func_uint64_t_u_u((!(safe_div_func_int64_t_s_s((*g_375), 0xC5826FFD35C862A1LL))), 0xC589E09C6D4B190DLL)) , (void*)0) != l_3251), 0x1210L)) || l_3231) , (void*)0) == (*l_3251)) > (*g_1255)) > p_15) , (*g_2998))), (*p_13))), 27)), l_3254)) && p_17) < 2L), l_3254)) && 0xA9F61931L))))), l_3254)))
    { /* block id: 1422 */
        int32_t l_3265[7] = {1L,1L,1L,1L,1L,1L,1L};
        int32_t l_3291 = 0x6A1A8F35L;
        int32_t l_3293[2][5];
        const uint32_t ** const *l_3333 = (void*)0;
        const uint32_t ** const **l_3332[7][5][2] = {{{&l_3333,&l_3333},{&l_3333,&l_3333},{&l_3333,&l_3333},{&l_3333,&l_3333},{&l_3333,&l_3333}},{{&l_3333,&l_3333},{&l_3333,&l_3333},{&l_3333,&l_3333},{&l_3333,&l_3333},{&l_3333,&l_3333}},{{&l_3333,&l_3333},{&l_3333,&l_3333},{&l_3333,&l_3333},{&l_3333,&l_3333},{&l_3333,&l_3333}},{{&l_3333,&l_3333},{&l_3333,&l_3333},{&l_3333,&l_3333},{&l_3333,&l_3333},{&l_3333,&l_3333}},{{&l_3333,&l_3333},{&l_3333,&l_3333},{&l_3333,&l_3333},{&l_3333,&l_3333},{&l_3333,&l_3333}},{{&l_3333,&l_3333},{&l_3333,(void*)0},{&l_3333,&l_3333},{&l_3333,(void*)0},{&l_3333,&l_3333}},{{&l_3333,&l_3333},{&l_3333,&l_3333},{(void*)0,&l_3333},{&l_3333,&l_3333},{&l_3333,&l_3333}}};
        int32_t l_3354 = 5L;
        uint32_t *l_3418 = &g_1325[2][1];
        uint32_t l_3422 = 4294967295UL;
        int32_t l_3434 = 0xBC82A705L;
        int16_t **l_3468 = &g_3405;
        uint64_t **l_3499 = &g_1972[1];
        uint64_t ***l_3498 = &l_3499;
        uint64_t ****l_3497 = &l_3498;
        uint16_t *l_3505 = &g_2609;
        uint16_t ** const l_3504 = &l_3505;
        uint16_t ** const *l_3503 = &l_3504;
        int32_t *l_3517[7] = {&l_3434,(void*)0,&l_3434,&l_3434,(void*)0,&l_3434,&l_3434};
        int32_t **l_3516[7][7] = {{&l_3517[5],(void*)0,&l_3517[5],&l_3517[5],&l_3517[5],&l_3517[5],(void*)0},{&l_3517[5],&l_3517[5],(void*)0,&l_3517[5],&l_3517[0],&l_3517[0],&l_3517[5]},{(void*)0,(void*)0,(void*)0,&l_3517[0],(void*)0,&l_3517[5],&l_3517[5]},{(void*)0,&l_3517[5],&l_3517[5],&l_3517[5],(void*)0,&l_3517[5],&l_3517[5]},{&l_3517[5],&l_3517[5],&l_3517[0],&l_3517[5],&l_3517[0],&l_3517[5],&l_3517[5]},{(void*)0,&l_3517[5],&l_3517[5],&l_3517[0],&l_3517[5],&l_3517[0],&l_3517[5]},{&l_3517[5],&l_3517[5],&l_3517[5],(void*)0,&l_3517[5],&l_3517[5],&l_3517[5]}};
        int i, j, k;
        for (i = 0; i < 2; i++)
        {
            for (j = 0; j < 5; j++)
                l_3293[i][j] = 0x327BD84BL;
        }
        for (g_496 = (-15); (g_496 > 46); g_496 = safe_add_func_int16_t_s_s(g_496, 4))
        { /* block id: 1425 */
            (*g_74) = p_13;
        }
lbl_3523:
        if (((l_3258 = (l_3257 = p_15)) <= ((((void*)0 != &g_1545) , 1L) >= (safe_div_func_int32_t_s_s((p_17 <= ((((safe_mul_func_int8_t_s_s(0x16L, ((safe_lshift_func_int32_t_s_u(0xDA96008BL, (0L <= l_3265[6]))) , (***g_1545)))) > (**g_1254)) && 0x00F2L) , 0xA2E5L)), l_3266[5][0])))))
        { /* block id: 1430 */
            int64_t *l_3267 = (void*)0;
            int64_t *l_3269 = &g_376[1][4];
            int32_t l_3280 = 0x6CCE5554L;
            int8_t l_3287 = 0x4FL;
            int32_t l_3300 = 0L;
            int32_t l_3305[3][5] = {{0x9C4EF3D7L,0xEB2FDF90L,0xEB2FDF90L,0x9C4EF3D7L,0xEB2FDF90L},{0x9C4EF3D7L,0x9C4EF3D7L,0xDD20D905L,0x9C4EF3D7L,0x9C4EF3D7L},{0xEB2FDF90L,0x9C4EF3D7L,0xEB2FDF90L,0xEB2FDF90L,0x9C4EF3D7L}};
            uint64_t l_3306 = 18446744073709551609UL;
            uint32_t ****l_3317 = &g_2623;
            int32_t l_3355 = 0L;
            const int64_t **l_3368 = (void*)0;
            const int64_t ***l_3367[8][3][1];
            const int64_t ****l_3366 = &l_3367[2][1][0];
            const int64_t *****l_3365 = &l_3366;
            uint8_t *l_3380[9][1] = {{&l_3266[2][1]},{&l_3266[6][5]},{&l_3266[2][1]},{&l_3266[6][5]},{&l_3266[2][1]},{&l_3266[6][5]},{&l_3266[2][1]},{&l_3266[6][5]},{&l_3266[2][1]}};
            int64_t l_3381 = 1L;
            int8_t l_3452 = 3L;
            int i, j, k;
            for (i = 0; i < 8; i++)
            {
                for (j = 0; j < 3; j++)
                {
                    for (k = 0; k < 1; k++)
                        l_3367[i][j][k] = &l_3368;
                }
            }
            if ((*g_275))
            { /* block id: 1431 */
                int64_t * const *l_3272 = &l_3268;
                int32_t ****l_3283 = &g_3000[2][4][1];
                int32_t l_3290 = 0x3FDF3DBBL;
                int32_t l_3292 = 0x3802E441L;
                int32_t l_3294[8] = {0x284AC99DL,0x284AC99DL,0x284AC99DL,0x284AC99DL,0x284AC99DL,0x284AC99DL,0x284AC99DL,0x284AC99DL};
                int64_t l_3304 = 0x09EB5E933072DD53LL;
                uint32_t ** const *l_3319[9][4] = {{&g_2620,&g_2620,&g_2620,&g_2620},{&g_2620,&g_2620,&g_2620,&g_2620},{&g_2620,(void*)0,&g_2620,&g_2620},{&g_2620,(void*)0,&g_2620,&g_2620},{(void*)0,&g_2620,(void*)0,&g_2620},{&g_2620,&g_2620,&g_2620,&g_2620},{&g_2620,&g_2620,&g_2620,&g_2620},{&g_2620,(void*)0,&g_2620,&g_2620},{&g_2620,&g_2620,&g_2620,&g_2620}};
                uint32_t ** const **l_3318 = &l_3319[0][3];
                int i, j;
                if ((l_3267 == (l_3269 = (l_3268 = l_3267))))
                { /* block id: 1434 */
                    uint16_t l_3277 = 0UL;
                    int32_t *** const *l_3284 = &g_3000[2][4][1];
                    int32_t *** const **l_3285 = &l_3284;
                    int32_t l_3296[6][3];
                    int32_t l_3301 = 0x387A8E52L;
                    int i, j;
                    for (i = 0; i < 6; i++)
                    {
                        for (j = 0; j < 3; j++)
                            l_3296[i][j] = 0x13002F98L;
                    }
                    (*g_74) = func_22(((safe_lshift_func_int16_t_s_u(((void*)0 != &g_1888), 9)) >= ((l_3272 == (void*)0) , ((safe_sub_func_uint32_t_u_u((((--(*g_1973)) < 18446744073709551615UL) != (2UL | (((((((l_3277 != p_17) != ((safe_lshift_func_int64_t_s_u((-2L), 48)) | 0xD830FEBEL)) && 0x68L) > l_3280) , p_15) , p_17) < p_17))), 0xA7F34C77L)) <= l_3265[6]))));
                    if (((*p_13) = (0x35D6EA5FL > (safe_add_func_uint16_t_u_u(l_3280, ((((((l_3277 && (((*g_2998) = l_3283) != ((*l_3285) = l_3284))) < (((void*)0 != l_3286) || 0L)) || 0x7EE31327L) >= (*g_275)) ^ 0xEE15E0B3L) == l_3287))))))
                    { /* block id: 1440 */
                        int16_t l_3288 = (-1L);
                        return l_3288;
                    }
                    else
                    { /* block id: 1442 */
                        int32_t *l_3289[8][1];
                        int8_t *l_3316 = &g_1324;
                        uint32_t ** const ***l_3320 = &l_3318;
                        int i, j;
                        for (i = 0; i < 8; i++)
                        {
                            for (j = 0; j < 1; j++)
                                l_3289[i][j] = &l_3280;
                        }
                        ++l_3306;
                        (*g_275) = ((*p_16) = (((p_17 > (safe_lshift_func_int32_t_s_u((((((0x9DL && ((***g_1545) = (safe_lshift_func_int16_t_s_u(((**g_1254) = p_15), 15)))) & (((safe_unary_minus_func_uint8_t_u((g_1836[0][5][0] , (((safe_mul_func_int8_t_s_s((l_3297 = (((*l_3316) = (-1L)) ^ (l_3317 == ((*l_3320) = l_3318)))), (((&g_1888 == (void*)0) == p_15) || p_17))) || p_15) | p_15)))) < 0L) >= 0x0B1AD8A278BE7BE2LL)) && 0x0FA8C957L) & 0x64588DF3L) ^ 0L), 17))) ^ p_15) , 0x0D2DFB75L));
                    }
                }
                else
                { /* block id: 1452 */
                    uint8_t l_3334 = 5UL;
                    int32_t *l_3335 = &l_3293[0][1];
                    int32_t l_3337 = 1L;
                    int32_t l_3343 = 5L;
                    int32_t l_3344 = 0x04833991L;
                    int32_t l_3345 = 0x7132AC27L;
                    (*p_16) |= (+(0xC1L <= ((l_3293[0][2] = ((safe_mod_func_uint64_t_u_u(p_17, 0xCFFDCE2F4BDBC3E5LL)) != p_15)) > ((((*g_222) = ((((safe_add_func_int64_t_s_s((safe_lshift_func_int8_t_s_u((((*g_1973) = ((((safe_lshift_func_int8_t_s_s(((***g_1545) = (l_3332[1][4][0] == &g_2623)), 5)) , (&g_1888 == (void*)0)) && ((***g_2619) = p_17)) <= l_3265[6])) < p_15), p_17)), p_17)) | 0xB4A276FED2AA4420LL) >= l_3287) , 0x5BBC89AFL)) , l_3334) <= l_3334))));
                    for (g_789 = 3; (g_789 >= 0); g_789 -= 1)
                    { /* block id: 1461 */
                        int32_t l_3336 = 0x76A013BEL;
                        int32_t *l_3338 = &l_3291;
                        int32_t *l_3339 = &g_1294;
                        int32_t *l_3340 = (void*)0;
                        int32_t *l_3341 = &l_3257;
                        int32_t *l_3342[2][2];
                        int i, j;
                        for (i = 0; i < 2; i++)
                        {
                            for (j = 0; j < 2; j++)
                                l_3342[i][j] = &l_3297;
                        }
                        (*g_74) = l_3335;
                        (*g_74) = p_16;
                        if ((*p_14))
                            break;
                        ++g_3346;
                    }
                }
                return (**g_1546);
            }
            else
            { /* block id: 1469 */
                int32_t *l_3349 = &g_820[9][0];
                int32_t *l_3350 = &g_11;
                int32_t *l_3351 = (void*)0;
                int32_t *l_3352 = (void*)0;
                int32_t *l_3353[5] = {&l_3305[1][0],&l_3305[1][0],&l_3305[1][0],&l_3305[1][0],&l_3305[1][0]};
                int64_t ***l_3372 = &g_209;
                int16_t l_3419 = 0xFC96L;
                int32_t *****l_3451 = &g_2999;
                int i;
                ++g_3356;
                (*l_3349) |= ((*l_3350) = l_3300);
                if (((((p_17 > (((safe_rshift_func_uint64_t_u_s((safe_rshift_func_int64_t_s_u(p_17, 30)), 3)) & 0x6928BA840497675ALL) , ((((((1L || ((*p_14) | (p_17 & (((-1L) ^ (**g_1254)) != (safe_add_func_int16_t_s_s(((((((((5UL != p_15) < p_17) && p_17) , l_3365) == l_3369) <= l_3293[1][3]) , p_17) || p_15), p_15)))))) , 8L) > l_3280) || 1L) ^ p_17) | p_17))) , l_3372) == l_3372) & l_3355))
                { /* block id: 1473 */
                    int64_t l_3373[7] = {0L,0L,0L,0L,0L,0L,0L};
                    int32_t l_3375 = (-1L);
                    int i;
                    if (((**g_172) == &p_16))
                    { /* block id: 1474 */
                        (*p_14) &= l_3373[3];
                    }
                    else
                    { /* block id: 1476 */
                        int16_t l_3374[9][2];
                        int i, j;
                        for (i = 0; i < 9; i++)
                        {
                            for (j = 0; j < 2; j++)
                                l_3374[i][j] = 1L;
                        }
                        return l_3374[4][0];
                    }
                    l_3375 = l_3373[3];
                    (*p_16) = (safe_add_func_int64_t_s_s(0x818BED1EF847E643LL, (l_3287 != ((0xD2L <= (*l_3350)) <= (safe_div_func_int32_t_s_s(((l_3380[4][0] = l_3380[2][0]) == (void*)0), 6L))))));
                }
                else
                { /* block id: 1482 */
                    int32_t ***l_3398 = &g_1181[1];
                    int16_t **l_3401 = (void*)0;
                    int16_t ***l_3400[10][8][3] = {{{(void*)0,(void*)0,&l_3401},{&l_3401,(void*)0,(void*)0},{(void*)0,(void*)0,&l_3401},{(void*)0,(void*)0,(void*)0},{&l_3401,(void*)0,&l_3401},{&l_3401,&l_3401,(void*)0},{&l_3401,(void*)0,&l_3401},{(void*)0,&l_3401,(void*)0}},{{(void*)0,(void*)0,&l_3401},{&l_3401,(void*)0,(void*)0},{(void*)0,(void*)0,&l_3401},{(void*)0,&l_3401,&l_3401},{(void*)0,&l_3401,(void*)0},{(void*)0,(void*)0,&l_3401},{(void*)0,&l_3401,(void*)0},{&l_3401,(void*)0,&l_3401}},{{&l_3401,&l_3401,(void*)0},{(void*)0,&l_3401,&l_3401},{&l_3401,&l_3401,(void*)0},{&l_3401,&l_3401,&l_3401},{(void*)0,&l_3401,(void*)0},{(void*)0,(void*)0,&l_3401},{(void*)0,&l_3401,(void*)0},{&l_3401,(void*)0,&l_3401}},{{&l_3401,&l_3401,(void*)0},{(void*)0,&l_3401,&l_3401},{&l_3401,&l_3401,(void*)0},{&l_3401,&l_3401,&l_3401},{(void*)0,&l_3401,(void*)0},{(void*)0,(void*)0,&l_3401},{(void*)0,&l_3401,(void*)0},{&l_3401,(void*)0,&l_3401}},{{&l_3401,&l_3401,(void*)0},{(void*)0,&l_3401,&l_3401},{&l_3401,&l_3401,(void*)0},{&l_3401,&l_3401,&l_3401},{(void*)0,&l_3401,(void*)0},{(void*)0,(void*)0,&l_3401},{(void*)0,&l_3401,(void*)0},{&l_3401,(void*)0,&l_3401}},{{&l_3401,&l_3401,(void*)0},{(void*)0,&l_3401,&l_3401},{&l_3401,&l_3401,(void*)0},{&l_3401,&l_3401,&l_3401},{(void*)0,&l_3401,(void*)0},{(void*)0,(void*)0,&l_3401},{(void*)0,&l_3401,(void*)0},{&l_3401,(void*)0,&l_3401}},{{&l_3401,&l_3401,(void*)0},{(void*)0,&l_3401,&l_3401},{&l_3401,&l_3401,(void*)0},{&l_3401,&l_3401,&l_3401},{(void*)0,&l_3401,(void*)0},{(void*)0,(void*)0,&l_3401},{(void*)0,&l_3401,(void*)0},{&l_3401,(void*)0,&l_3401}},{{&l_3401,&l_3401,(void*)0},{(void*)0,&l_3401,&l_3401},{&l_3401,&l_3401,(void*)0},{&l_3401,&l_3401,&l_3401},{(void*)0,&l_3401,(void*)0},{(void*)0,(void*)0,&l_3401},{(void*)0,&l_3401,(void*)0},{&l_3401,(void*)0,&l_3401}},{{&l_3401,&l_3401,(void*)0},{(void*)0,&l_3401,&l_3401},{&l_3401,&l_3401,(void*)0},{&l_3401,&l_3401,&l_3401},{(void*)0,&l_3401,(void*)0},{(void*)0,(void*)0,&l_3401},{(void*)0,&l_3401,(void*)0},{&l_3401,(void*)0,&l_3401}},{{&l_3401,&l_3401,(void*)0},{(void*)0,&l_3401,&l_3401},{&l_3401,&l_3401,&l_3401},{&l_3401,(void*)0,&l_3401},{&l_3401,&l_3401,&l_3401},{(void*)0,&l_3401,(void*)0},{&l_3401,&l_3401,&l_3401},{&l_3401,&l_3401,&l_3401}}};
                    int16_t ****l_3399[5];
                    const int64_t ****l_3411 = &l_3367[2][1][0];
                    uint32_t *l_3421 = &l_3232;
                    uint32_t **l_3420 = &l_3421;
                    int32_t l_3429 = 0xEDFBE91BL;
                    int32_t l_3430[10];
                    uint8_t l_3440 = 249UL;
                    int i, j, k;
                    for (i = 0; i < 5; i++)
                        l_3399[i] = &l_3400[6][3][1];
                    for (i = 0; i < 10; i++)
                        l_3430[i] = 0x7B88B0CFL;
                    l_3381 ^= 0x86E1AC1EL;
                    for (g_83 = 0; (g_83 != 16); g_83 = safe_add_func_uint8_t_u_u(g_83, 8))
                    { /* block id: 1486 */
                        uint8_t l_3406 = 255UL;
                        l_3406 |= (((*p_16) ^ p_17) , (safe_sub_func_uint32_t_u_u((1UL <= (safe_mul_func_uint64_t_u_u(0xAB05B008D9AC52DDLL, (!((((((safe_add_func_int16_t_s_s((l_3354 > ((safe_rshift_func_int32_t_s_u(((safe_add_func_int32_t_s_s(((((l_3291 < (!((((*p_13) = (safe_lshift_func_int8_t_s_u(((l_3398 != (void*)0) > l_3306), 5))) > 0x9040186FL) == p_17))) , p_15) , l_3399[4]) == g_3402), (***g_2619))) != p_17), (**g_2620))) , (*g_1217))), l_3305[1][2])) , p_15) , 0xB55DEC6BL) , p_17) | 0xFFF3L) || (*g_375)))))), 0L)));
                    }
                    if ((l_3258 &= ((*l_3349) = (safe_mod_func_int8_t_s_s(((((((safe_div_func_int8_t_s_s((0x35L ^ p_15), p_15)) && (((*l_3365) = l_3411) != (*l_3369))) < (p_17 == (**g_3404))) ^ ((*p_13) = (safe_rshift_func_int64_t_s_u((safe_div_func_int16_t_s_s(((((((safe_rshift_func_uint16_t_u_s(((((*g_2620) = l_3418) != ((*l_3420) = l_3418)) ^ 0x7AE8L), 4)) && 0x3F613684EFD5DBA9LL) && (**g_1254)) | (**g_1266)) , l_3265[6]) == 65528UL), (*g_3405))), 44)))) < 0x1F44L) , l_3422), l_3265[6])))))
                    { /* block id: 1496 */
                        uint8_t l_3423 = 248UL;
                        l_3423--;
                    }
                    else
                    { /* block id: 1498 */
                        int32_t l_3426 = 0L;
                        int32_t l_3427 = 0L;
                        int32_t l_3428 = 1L;
                        int32_t l_3431 = 0L;
                        int32_t l_3432 = 1L;
                        int32_t l_3433 = (-1L);
                        int32_t l_3435 = 1L;
                        int32_t l_3436 = 1L;
                        int32_t l_3437 = 0x3C62A168L;
                        int32_t l_3438[5][8] = {{3L,3L,8L,3L,3L,8L,3L,3L},{0x7362334FL,3L,0x7362334FL,0x7362334FL,3L,0x7362334FL,0x7362334FL,3L},{3L,0x7362334FL,0x7362334FL,3L,0x7362334FL,0x7362334FL,3L,0x7362334FL},{3L,3L,8L,3L,3L,8L,3L,3L},{0x7362334FL,3L,0x7362334FL,0x7362334FL,3L,0x7362334FL,0x7362334FL,3L}};
                        uint64_t **l_3450[10][6][4] = {{{&g_1972[0],(void*)0,&g_1973,&g_1972[1]},{&g_1972[1],(void*)0,&g_1972[1],&g_1972[1]},{(void*)0,(void*)0,&g_1972[0],&g_1972[1]},{&g_1972[1],&g_1972[1],&g_1972[1],&g_1972[1]},{&g_1972[0],(void*)0,(void*)0,&g_1972[1]},{&g_1972[1],(void*)0,&g_1972[1],&g_1972[1]}},{{&g_1972[1],(void*)0,&g_1972[0],&g_1972[1]},{&g_1973,(void*)0,&g_1972[1],&g_1972[1]},{&g_1972[1],&g_1972[1],&g_1973,&g_1972[1]},{&g_1972[1],(void*)0,&g_1972[1],&g_1972[1]},{&g_1972[0],(void*)0,&g_1973,&g_1972[1]},{&g_1972[1],(void*)0,&g_1972[1],&g_1972[1]}},{{(void*)0,(void*)0,&g_1972[0],&g_1972[1]},{&g_1972[1],&g_1972[1],&g_1972[1],&g_1972[1]},{&g_1972[0],(void*)0,(void*)0,&g_1972[1]},{&g_1972[1],(void*)0,&g_1972[1],&g_1972[1]},{&g_1972[1],(void*)0,&g_1972[0],&g_1972[1]},{&g_1973,(void*)0,&g_1972[1],&g_1972[1]}},{{&g_1972[1],&g_1972[1],&g_1973,&g_1972[1]},{&g_1972[1],(void*)0,&g_1972[1],&g_1972[1]},{&g_1972[0],(void*)0,&g_1973,&g_1972[1]},{&g_1972[1],(void*)0,&g_1972[1],&g_1972[1]},{(void*)0,(void*)0,&g_1972[0],&g_1972[1]},{&g_1972[1],&g_1972[1],&g_1972[1],&g_1972[1]}},{{&g_1972[0],(void*)0,(void*)0,&g_1972[1]},{&g_1972[1],(void*)0,&g_1972[1],&g_1972[1]},{&g_1972[1],(void*)0,&g_1972[0],&g_1972[1]},{&g_1973,(void*)0,&g_1972[1],&g_1972[1]},{&g_1972[1],&g_1972[1],&g_1973,&g_1972[1]},{&g_1972[1],(void*)0,&g_1972[1],&g_1972[1]}},{{&g_1972[0],(void*)0,&g_1973,&g_1972[1]},{&g_1972[1],(void*)0,&g_1972[1],&g_1972[1]},{(void*)0,(void*)0,&g_1972[0],&g_1972[1]},{&g_1972[1],&g_1972[1],&g_1972[1],&g_1972[0]},{&g_1972[2],&g_1972[1],&g_1972[0],&g_1972[1]},{&g_1973,&g_1972[0],&g_1972[1],&g_1972[1]}},{{(void*)0,&g_1972[0],(void*)0,&g_1972[1]},{&g_1972[1],&g_1972[1],&g_1972[0],&g_1972[0]},{(void*)0,(void*)0,(void*)0,&g_1972[0]},{&g_1973,&g_1972[1],&g_1972[1],&g_1972[1]},{&g_1972[2],&g_1972[0],(void*)0,&g_1972[1]},{&g_1973,&g_1972[0],&g_1972[0],&g_1972[1]}},{{&g_1972[0],&g_1972[1],(void*)0,&g_1972[0]},{&g_1973,(void*)0,&g_1972[1],&g_1972[0]},{&g_1972[2],&g_1972[1],&g_1972[0],&g_1972[1]},{&g_1973,&g_1972[0],&g_1972[1],&g_1972[1]},{(void*)0,&g_1972[0],(void*)0,&g_1972[1]},{&g_1972[1],&g_1972[1],&g_1972[0],&g_1972[0]}},{{(void*)0,(void*)0,(void*)0,&g_1972[0]},{&g_1973,&g_1972[1],&g_1972[1],&g_1972[1]},{&g_1972[2],&g_1972[0],(void*)0,&g_1972[1]},{&g_1973,&g_1972[0],&g_1972[0],&g_1972[1]},{&g_1972[0],&g_1972[1],(void*)0,&g_1972[0]},{&g_1973,(void*)0,&g_1972[1],&g_1972[0]}},{{&g_1972[2],&g_1972[1],&g_1972[0],&g_1972[1]},{&g_1973,&g_1972[0],&g_1972[1],&g_1972[1]},{(void*)0,&g_1972[0],(void*)0,&g_1972[1]},{&g_1972[1],&g_1972[1],&g_1972[0],&g_1972[0]},{(void*)0,(void*)0,(void*)0,&g_1972[0]},{&g_1973,&g_1972[1],&g_1972[1],&g_1972[1]}}};
                        int64_t *l_3457 = (void*)0;
                        uint16_t *l_3458 = &g_2609;
                        int i, j, k;
                        l_3440--;
                        l_3300 ^= (safe_sub_func_uint16_t_u_u(((((*l_3458) |= (((p_17 < g_3445) == (safe_lshift_func_uint32_t_u_s((safe_mul_func_uint64_t_u_u((l_3452 = ((((void*)0 == l_3450[7][1][0]) , (void*)0) == (l_3451 = l_3451))), ((*p_14) , ((***l_3371) &= (safe_add_func_int8_t_s_s((p_17 <= ((safe_div_func_uint64_t_u_u(((((((((0x3391L || (*g_1217)) > p_15) , l_3291) & 0UL) , (void*)0) != l_3457) >= p_17) || 0UL), 0x70DFF3A8673E22F3LL)) || p_15)), 1UL)))))), 26))) < 0xEF5222D0L)) ^ p_15) || 0xE35F623AL), (**g_3404)));
                        l_3305[1][1] ^= (*p_13);
                    }
                }
            }
        }
        else
        { /* block id: 1509 */
            int16_t **l_3466 = &g_3405;
            int16_t ***l_3467[8][5][6] = {{{&l_3466,&l_3466,&g_3404,&l_3466,&g_3404,&l_3466},{(void*)0,&l_3466,(void*)0,(void*)0,&g_3404,&g_3404},{(void*)0,&l_3466,&l_3466,(void*)0,&g_3404,(void*)0},{&l_3466,&l_3466,&g_3404,&l_3466,&g_3404,&l_3466},{(void*)0,&l_3466,(void*)0,(void*)0,&g_3404,&g_3404}},{{(void*)0,&l_3466,&l_3466,(void*)0,&g_3404,(void*)0},{&l_3466,&l_3466,&g_3404,&l_3466,&g_3404,&l_3466},{(void*)0,&l_3466,(void*)0,(void*)0,&g_3404,&g_3404},{(void*)0,&l_3466,&l_3466,(void*)0,&g_3404,(void*)0},{&l_3466,&l_3466,&g_3404,&l_3466,&g_3404,&l_3466}},{{(void*)0,&l_3466,(void*)0,(void*)0,&g_3404,&g_3404},{(void*)0,&l_3466,&l_3466,(void*)0,&g_3404,(void*)0},{&l_3466,&l_3466,&g_3404,&l_3466,&g_3404,&l_3466},{(void*)0,&l_3466,(void*)0,(void*)0,&g_3404,&g_3404},{(void*)0,&l_3466,&l_3466,&l_3466,&g_3404,&l_3466}},{{(void*)0,&l_3466,&g_3404,(void*)0,&g_3404,&l_3466},{&g_3404,&l_3466,&l_3466,&g_3404,&g_3404,&g_3404},{&l_3466,&l_3466,&l_3466,&l_3466,&g_3404,&l_3466},{(void*)0,&l_3466,&g_3404,(void*)0,&g_3404,&l_3466},{&g_3404,&l_3466,&l_3466,&g_3404,&g_3404,&g_3404}},{{&l_3466,&l_3466,&l_3466,&l_3466,&g_3404,&l_3466},{(void*)0,&l_3466,&g_3404,(void*)0,&g_3404,&l_3466},{&g_3404,&l_3466,&l_3466,&g_3404,&g_3404,&g_3404},{&l_3466,&l_3466,&l_3466,&l_3466,&g_3404,&l_3466},{(void*)0,&l_3466,&g_3404,(void*)0,&g_3404,&l_3466}},{{&g_3404,&l_3466,&l_3466,&g_3404,&g_3404,&g_3404},{&l_3466,&l_3466,&l_3466,&l_3466,&g_3404,&l_3466},{(void*)0,&l_3466,&g_3404,(void*)0,&g_3404,&l_3466},{&g_3404,&l_3466,&l_3466,&g_3404,&g_3404,&g_3404},{&l_3466,&l_3466,&l_3466,&l_3466,&g_3404,&l_3466}},{{(void*)0,&l_3466,&g_3404,(void*)0,&g_3404,&l_3466},{&g_3404,&l_3466,&l_3466,&g_3404,&g_3404,&g_3404},{&l_3466,&l_3466,&l_3466,&l_3466,&g_3404,&l_3466},{(void*)0,&l_3466,&g_3404,(void*)0,&g_3404,&l_3466},{&g_3404,&l_3466,&l_3466,&g_3404,&g_3404,&g_3404}},{{&l_3466,&l_3466,&l_3466,&l_3466,&g_3404,&l_3466},{(void*)0,&l_3466,&g_3404,(void*)0,&g_3404,&l_3466},{&g_3404,&l_3466,&l_3466,&g_3404,&g_3404,&g_3404},{&l_3466,&l_3466,&l_3466,&l_3466,&g_3404,&l_3466},{(void*)0,&l_3466,&g_3404,(void*)0,&g_3404,&l_3466}}};
            int32_t l_3472 = 0x002DFD8CL;
            const int8_t ***l_3481 = &g_3479;
            int i, j, k;
            l_3293[1][3] = (safe_mod_func_uint8_t_u_u((safe_sub_func_uint32_t_u_u(((safe_unary_minus_func_uint16_t_u(((safe_mul_func_uint32_t_u_u((p_17 ^ ((l_3468 = l_3466) != l_3469)), ((safe_mul_func_uint64_t_u_u((((1L ^ (l_3472 , (1L == ((safe_div_func_int8_t_s_s(((0UL ^ (((safe_mod_func_uint8_t_u_u(((l_3482[1] = (((((*g_1545) != ((*l_3481) = g_3479)) >= 1L) , &l_3251) == &g_2436[0][0][0])) , p_15), l_3422)) < p_15) < p_17)) || p_15), l_3483)) >= (**g_2620))))) & 0L) && 0L), l_3354)) && (*p_13)))) & l_3293[1][3]))) | l_3293[0][1]), (*p_16))), p_17));
            for (g_185 = 0; (g_185 > (-8)); g_185 = safe_sub_func_int32_t_s_s(g_185, 6))
            { /* block id: 1516 */
                return p_15;
            }
            for (g_1324 = 0; (g_1324 <= (-6)); g_1324--)
            { /* block id: 1521 */
                uint16_t ***l_3509 = &g_2522;
                int32_t l_3518 = (-1L);
                uint32_t ***l_3519 = &g_2620;
                for (g_111 = 25; (g_111 >= 53); g_111 = safe_add_func_int32_t_s_s(g_111, 4))
                { /* block id: 1524 */
                    uint16_t ** const **l_3502[10][10] = {{&l_3501,&l_3501,(void*)0,&l_3501,&l_3501,(void*)0,&l_3501,&l_3501,&l_3501,&l_3501},{(void*)0,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,(void*)0,&l_3501},{&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501},{&l_3501,&l_3501,(void*)0,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501},{&l_3501,&l_3501,(void*)0,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,(void*)0},{&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501},{&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,(void*)0,&l_3501,&l_3501,(void*)0,&l_3501},{(void*)0,&l_3501,&l_3501,(void*)0,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501},{(void*)0,&l_3501,&l_3501,&l_3501,(void*)0,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501},{&l_3501,&l_3501,(void*)0,&l_3501,&l_3501,&l_3501,&l_3501,&l_3501,(void*)0,&l_3501}};
                    uint8_t ****l_3510 = (void*)0;
                    uint8_t *****l_3515 = &g_3511[0];
                    int i, j;
                    p_16 = func_22(((*g_3405) &= (safe_sub_func_int8_t_s_s((p_15 ^ (safe_add_func_int32_t_s_s(((safe_sub_func_int8_t_s_s((((p_17 , (safe_unary_minus_func_int64_t_s(((((l_3497 != g_3500[4]) , ((g_3506 = (l_3503 = l_3501)) != l_3509)) != ((l_3510 == ((*l_3515) = g_3511[0])) < (p_17 = ((void*)0 == l_3516[6][6])))) & 2UL)))) | p_15) , 0L), p_15)) && l_3518), (*p_14)))), l_3291))));
                }
                (*g_3520) = l_3519;
                (*g_74) = func_22(p_17);
            }
        }
        for (g_3439 = 0; (g_3439 <= (-22)); g_3439--)
        { /* block id: 1538 */
            return p_17;
        }
        if (p_15)
            goto lbl_3523;
    }
    else
    { /* block id: 1542 */
        const int32_t * const l_3524[9] = {(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0};
        int32_t l_3535 = (-1L);
        uint32_t l_3536 = 1UL;
        uint64_t *l_3543 = &g_1836[0][5][0];
        int8_t ***l_3571 = &g_1521;
        int32_t l_3601 = 0x6AD18E53L;
        uint32_t *l_3620 = &g_83;
        uint8_t ****l_3632 = (void*)0;
        int32_t l_3664 = 0x2DE3ED44L;
        int32_t l_3665[10] = {1L,0x20C1BB66L,1L,1L,0x20C1BB66L,1L,1L,0x20C1BB66L,1L,1L};
        uint32_t l_3675 = 0x16FD73A0L;
        int32_t l_3720[1][8] = {{0x5C441A83L,0x5C441A83L,0x5C441A83L,0x5C441A83L,0x5C441A83L,0x5C441A83L,0x5C441A83L,0x5C441A83L}};
        uint32_t ****l_3731 = (void*)0;
        uint32_t *****l_3730 = &l_3731;
        uint32_t l_3737 = 1UL;
        int8_t l_3753 = 0x60L;
        const int32_t *l_3764 = (void*)0;
        int16_t l_3815 = 0x897EL;
        const uint64_t l_3816[1] = {0x0ABE35323CDC0CF7LL};
        uint8_t l_3877 = 0xF7L;
        const uint16_t l_3905 = 0x9D98L;
        int i, j;
        if ((*p_13))
        { /* block id: 1543 */
            volatile int32_t *l_3527[6][10] = {{&g_923,&g_923,(void*)0,(void*)0,&g_923,&g_923,(void*)0,(void*)0,&g_923,&g_923},{&g_923,(void*)0,(void*)0,&g_923,&g_923,(void*)0,(void*)0,&g_923,&g_923,(void*)0},{&g_923,&g_923,(void*)0,(void*)0,&g_923,&g_923,(void*)0,(void*)0,&g_923,&g_923},{&g_923,(void*)0,(void*)0,&g_923,&g_923,(void*)0,(void*)0,&g_923,&g_923,(void*)0},{&g_923,&g_923,(void*)0,(void*)0,&g_923,&g_923,(void*)0,(void*)0,&g_923,&g_923},{&g_923,(void*)0,(void*)0,&g_923,&g_923,(void*)0,(void*)0,&g_923,&g_923,(void*)0}};
            int32_t l_3546 = 1L;
            int32_t l_3560 = (-1L);
            uint8_t l_3588 = 3UL;
            int32_t l_3606[5][9] = {{0x4EABA0D1L,(-2L),0L,0xBA2E9B4DL,0x50CA6CB2L,(-9L),0xBA2E9B4DL,0x4EABA0D1L,(-1L)},{(-2L),0x4EABA0D1L,0xDD62ABECL,0x50CA6CB2L,0x50CA6CB2L,0xDD62ABECL,0x4EABA0D1L,(-2L),0L},{1L,(-1L),0xDD62ABECL,0xBA2E9B4DL,(-1L),8L,0x50CA6CB2L,1L,(-6L)},{1L,0x4EABA0D1L,0L,1L,(-2L),(-6L),(-2L),1L,0L},{(-2L),(-2L),(-9L),(-1L),0x3C8AB954L,0xBA2E9B4DL,0x980FE196L,3L,0x7023FF79L}};
            uint16_t *** const l_3695 = &g_2522;
            uint16_t *** const *l_3694[5][3] = {{(void*)0,&l_3695,&l_3695},{(void*)0,&l_3695,(void*)0},{&l_3695,(void*)0,&l_3695},{&l_3695,&l_3695,(void*)0},{(void*)0,(void*)0,(void*)0}};
            uint32_t ***l_3701[6][10][4] = {{{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{(void*)0,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,(void*)0,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{(void*)0,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,(void*)0,&g_1385}},{{&g_1385,&g_1385,(void*)0,&g_1385},{&g_1385,(void*)0,(void*)0,&g_1385},{&g_1385,&g_1385,(void*)0,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{(void*)0,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,(void*)0,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385}},{{(void*)0,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,(void*)0,&g_1385},{&g_1385,&g_1385,(void*)0,&g_1385},{&g_1385,(void*)0,(void*)0,&g_1385},{&g_1385,&g_1385,(void*)0,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{(void*)0,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385}},{{&g_1385,(void*)0,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{(void*)0,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,(void*)0,&g_1385},{&g_1385,&g_1385,(void*)0,&g_1385},{&g_1385,(void*)0,(void*)0,&g_1385},{&g_1385,&g_1385,(void*)0,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385}},{{&g_1385,&g_1385,&g_1385,&g_1385},{(void*)0,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,(void*)0,(void*)0},{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,(void*)0,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,(void*)0,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,(void*)0}},{{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,(void*)0,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,(void*)0,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,&g_1385,(void*)0,(void*)0},{&g_1385,&g_1385,&g_1385,&g_1385},{&g_1385,(void*)0,&g_1385,&g_1385},{&g_1385,&g_1385,&g_1385,&g_1385}}};
            int16_t l_3736 = 0L;
            int64_t *****l_3765 = &g_2901;
            int16_t l_3870[8][2] = {{7L,7L},{7L,0x242FL},{7L,7L},{7L,0x242FL},{7L,7L},{7L,0x242FL},{7L,7L},{7L,0x242FL}};
            uint8_t ***l_3878 = (void*)0;
            const int32_t * const l_3901 = (void*)0;
            int i, j, k;
            if (((*p_16) = (*p_16)))
            { /* block id: 1545 */
                const int32_t *l_3526 = &l_3302;
                const int32_t **l_3525 = &l_3526;
                (*l_3525) = l_3524[4];
                l_3527[5][3] = (**g_173);
                for (l_3483 = 0; (l_3483 >= 47); l_3483++)
                { /* block id: 1550 */
                    int32_t *l_3532 = &g_820[2][0];
                    for (g_4 = 0; (g_4 < 17); g_4++)
                    { /* block id: 1553 */
                        if ((*p_14))
                            break;
                        (*g_74) = l_3532;
                        (*p_14) &= ((void*)0 == (*g_2435));
                    }
                    (*p_16) |= 0x256C4BD1L;
                }
            }
            else
            { /* block id: 1560 */
                int32_t l_3533[3];
                int32_t l_3534[7][7][5] = {{{0L,0x483E92ACL,(-1L),0x114571F7L,0xEF51FD54L},{0xB1AC2F0FL,0x53253E09L,0xE11C3444L,0x69B1EAECL,0xB1AC2F0FL},{1L,1L,6L,0xE15929CAL,0xE15929CAL},{0L,0x53253E09L,0L,0L,0x6643A88CL},{0xEF51FD54L,0x483E92ACL,0x114571F7L,1L,(-10L)},{(-1L),0L,0x2A5E740DL,(-1L),0xB1AC2F0FL},{0xE15929CAL,0xAB4461B1L,0x114571F7L,(-10L),7L}},{{1L,0x77AADEBFL,0L,0xEB64C2E9L,0L},{(-10L),0L,6L,0x114571F7L,9L},{(-1L),0xEB64C2E9L,0xE11C3444L,0xEB64C2E9L,(-1L)},{7L,1L,(-1L),(-10L),0x483E92ACL},{0L,0xD672FF11L,0L,(-1L),0x6643A88CL},{9L,0L,0L,1L,0x483E92ACL},{0xB1AC2F0FL,(-1L),0x2A5E740DL,0L,(-1L)}},{{0x483E92ACL,0xAB4461B1L,1L,0xE15929CAL,9L},{1L,1L,0L,0x69B1EAECL,0L},{0x483E92ACL,0x483E92ACL,1L,0x114571F7L,7L},{0xB1AC2F0FL,0x69B1EAECL,0xE11C3444L,0x53253E09L,0xB1AC2F0FL},{9L,1L,1L,0xE15929CAL,(-10L)},{0L,0x69B1EAECL,0L,1L,0x6643A88CL},{7L,0x483E92ACL,0xAB4461B1L,1L,0xE15929CAL}},{{(-1L),1L,0x2A5E740DL,0x77AADEBFL,0xB1AC2F0FL},{(-10L),0xAB4461B1L,0xAB4461B1L,(-10L),0xEF51FD54L},{1L,(-1L),0L,0xD672FF11L,0L},{0xE15929CAL,0L,1L,0x114571F7L,1L},{(-1L),0xD672FF11L,0xE11C3444L,0xD672FF11L,(-1L)},{0xEF51FD54L,1L,1L,(-10L),0L},{0L,0xEB64C2E9L,0L,0x77AADEBFL,0x6643A88CL}},{{1L,0L,1L,1L,0L},{0xB1AC2F0FL,0x77AADEBFL,0x2A5E740DL,1L,(-1L)},{0L,0xAB4461B1L,0L,0xE15929CAL,1L},{1L,0L,0L,0x53253E09L,0L},{0L,0x483E92ACL,(-1L),0x114571F7L,0xEF51FD54L},{0xB1AC2F0FL,0x53253E09L,0xE11C3444L,0x69B1EAECL,0xB1AC2F0FL},{1L,1L,6L,0xE15929CAL,0xE15929CAL}},{{0L,0x53253E09L,0L,0L,0x6643A88CL},{0xEF51FD54L,0x483E92ACL,0x114571F7L,1L,(-10L)},{(-1L),0L,0x2A5E740DL,(-1L),0xB1AC2F0FL},{0xE15929CAL,0xAB4461B1L,0x114571F7L,(-10L),7L},{1L,0x77AADEBFL,0L,0xEB64C2E9L,0L},{(-10L),0L,6L,0x114571F7L,9L},{(-1L),0xEB64C2E9L,0xE11C3444L,0xEB64C2E9L,(-1L)}},{{7L,1L,(-1L),(-10L),0x483E92ACL},{0L,0xD672FF11L,0L,(-1L),0x6643A88CL},{9L,0L,0L,1L,0x483E92ACL},{0xB1AC2F0FL,(-1L),0x2A5E740DL,0L,(-1L)},{0x483E92ACL,0xAB4461B1L,1L,0xE15929CAL,9L},{1L,1L,0L,0x69B1EAECL,0L},{0x483E92ACL,0x483E92ACL,1L,0x114571F7L,7L}}};
                uint32_t l_3561 = 0xF3215D2BL;
                int8_t ***l_3572 = &g_1521;
                int8_t ****l_3573 = (void*)0;
                int8_t ****l_3574 = &l_3572;
                int i, j, k;
                for (i = 0; i < 3; i++)
                    l_3533[i] = 0x738DAA14L;
                l_3536--;
                l_3303[3] = (p_17 == (((*g_1973) = ((safe_div_func_int32_t_s_s((safe_sub_func_uint16_t_u_u((3L | ((((*p_13) = ((l_3543 == (void*)0) , (safe_mul_func_uint8_t_u_u(l_3546, p_15)))) <= ((+(l_3535 = (safe_div_func_uint64_t_u_u((p_15 ^ ((safe_mul_func_uint64_t_u_u((safe_mul_func_int64_t_s_s((((safe_sub_func_int8_t_s_s(((l_3534[5][6][2] = (0xBE0AL != ((safe_div_func_uint16_t_u_u((safe_add_func_int32_t_s_s((((*g_778) >= l_3560) != 0xE8L), l_3534[6][2][2])), p_17)) & p_15))) > l_3546), l_3533[1])) != l_3561) > 65535UL), 0xC20B1CB970A56C98LL)), l_3533[2])) , l_3534[4][4][1])), l_3560)))) > l_3562)) & 0x86E0L)), p_17)), 9UL)) , (*g_1973))) , p_17));
                l_3534[4][4][1] &= (4L != ((((safe_lshift_func_int8_t_s_s(p_17, 1)) & (safe_lshift_func_uint8_t_u_u(((safe_lshift_func_int32_t_s_s((((*p_16) = ((((-1L) || (safe_mul_func_uint8_t_u_u((0xEC840B863D79FFEBLL || (l_3571 == ((*l_3574) = l_3572))), ((safe_lshift_func_uint16_t_u_u((l_3577 = 0x2E96L), 7)) , 0x24L)))) , (**g_2620)) , (-2L))) > 0x0EEF9FE2L), 26)) >= 18446744073709551615UL), 1))) , (**g_1266)) == p_15));
            }
lbl_3712:
            if (((safe_mod_func_int8_t_s_s(p_15, 9UL)) && ((safe_lshift_func_uint16_t_u_s((l_3562 != (((safe_sub_func_uint16_t_u_u((safe_sub_func_uint8_t_u_u(5UL, (safe_sub_func_int32_t_s_s((((((((((l_3588 >= (safe_sub_func_int32_t_s_s((((*****l_3369) = (safe_rshift_func_int8_t_s_s((((safe_add_func_int8_t_s_s((safe_rshift_func_int8_t_s_u(0L, ((safe_div_func_int8_t_s_s(((safe_mod_func_uint32_t_u_u((p_15 & (l_3601 && (safe_mod_func_int32_t_s_s(((safe_mul_func_int16_t_s_s(0x9193L, (**g_1216))) & l_3588), p_17)))), 4294967289UL)) , l_3606[1][3]), g_3607)) || (-6L)))), p_15)) > p_15) , p_15), g_3608))) >= p_17), 4294967295UL))) | p_15) && 0x00F6853044A3AC28LL) , l_3609) == (void*)0) , (*g_275)) & l_3588) && 1UL) != p_17), 0UL)))), 0L)) != (*p_13)) , p_15)), 3)) & 249UL)))
            { /* block id: 1573 */
                int16_t l_3615 = 0x176DL;
                uint32_t **l_3621[1];
                int32_t l_3623[4] = {7L,7L,7L,7L};
                int32_t l_3663 = 1L;
                int i;
                for (i = 0; i < 1; i++)
                    l_3621[i] = (void*)0;
                (*g_275) = ((*g_275) || ((-1L) > ((--(**g_3513)) ^ ((((safe_unary_minus_func_int64_t_s((&g_692 == (void*)0))) ^ (l_3615 = ((p_17 < (248UL | 0x1FL)) ^ p_15))) <= (((p_17 > 0x2D90L) , (*p_14)) & 0L)) && 65534UL))));
                (*p_13) |= (p_17 >= (0xB659319CL < (l_3623[0] = (l_3615 <= ((safe_rshift_func_int64_t_s_s(0x4378ACC622E01112LL, 61)) < (p_17 && (((**g_2619) = p_16) != (l_3620 = (g_3622 = l_3620)))))))));
                for (g_83 = (-25); (g_83 == 34); ++g_83)
                { /* block id: 1584 */
                    int64_t l_3626 = (-2L);
                    uint8_t ****l_3630 = (void*)0;
                    int8_t *****l_3654 = &l_3610[3];
                    int32_t l_3661 = 1L;
                    int32_t l_3662 = (-1L);
                    int32_t l_3666 = 1L;
                    int32_t l_3667 = 0L;
                    uint32_t ****l_3681 = &g_2270;
                    (*p_14) = (l_3626 == ((**l_3469) ^= (0xCB32L >= l_3615)));
                    for (g_184 = 0; (g_184 != 21); ++g_184)
                    { /* block id: 1589 */
                        uint8_t *****l_3631[2];
                        int32_t l_3633[7] = {0L,0L,0L,0L,0L,0L,0L};
                        uint32_t *****l_3660[2];
                        int i;
                        for (i = 0; i < 2; i++)
                            l_3631[i] = &g_3511[0];
                        for (i = 0; i < 2; i++)
                            l_3660[i] = &g_2269;
                        (*p_13) = (+(((l_3633[2] = ((*g_2435) != (l_3632 = l_3630))) && (safe_mul_func_int8_t_s_s((safe_add_func_uint64_t_u_u((safe_div_func_uint16_t_u_u(p_15, (safe_rshift_func_int8_t_s_u(0xC6L, (safe_sub_func_uint16_t_u_u((safe_lshift_func_uint16_t_u_u((safe_rshift_func_int32_t_s_s(((safe_add_func_int64_t_s_s(((p_17 < ((*l_3543) = ((((safe_rshift_func_uint8_t_u_s((safe_mul_func_uint16_t_u_u(((void*)0 == l_3654), ((*g_3405) = (**g_1216)))), (safe_div_func_uint8_t_u_u(((~(safe_rshift_func_uint8_t_u_u(6UL, 7))) || 0xE6L), 0xBCL)))) , (void*)0) != l_3660[0]) >= l_3633[2]))) != 0x462DL), 0UL)) < 0x07L), 20)), l_3546)), 1L)))))), l_3623[0])), p_17))) <= p_17));
                        (*p_14) = (&p_14 != &p_14);
                        ++l_3668;
                    }
                    for (g_1062 = 0; (g_1062 >= (-16)); --g_1062)
                    { /* block id: 1600 */
                        int32_t *l_3673 = &l_3601;
                        int32_t l_3674[3];
                        int i;
                        for (i = 0; i < 3; i++)
                            l_3674[i] = 9L;
                        l_3623[0] &= (l_3606[0][8] ^= ((*l_3673) |= (*p_14)));
                        l_3675++;
                    }
                    for (l_3675 = 0; (l_3675 > 42); l_3675 = safe_add_func_int64_t_s_s(l_3675, 2))
                    { /* block id: 1608 */
                        uint32_t ****l_3680[5];
                        int i;
                        for (i = 0; i < 5; i++)
                            l_3680[i] = &g_2270;
                        (*p_16) = (l_3680[0] != l_3681);
                        if ((*p_16))
                            continue;
                    }
                }
            }
            else
            { /* block id: 1613 */
                int8_t ***l_3684 = &g_1521;
                int32_t l_3685[10][6][2] = {{{0L,0xF68D598CL},{0x4F3DDBD8L,0L},{0L,8L},{7L,0xF9E3AEB2L},{1L,0L},{7L,(-1L)}},{{2L,(-1L)},{7L,0L},{1L,0xF9E3AEB2L},{7L,8L},{0L,0L},{0x4F3DDBD8L,0xF68D598CL}},{{0L,2L},{0x8674078BL,0x9DF80A0AL},{0xF68D598CL,0x8674078BL},{0xF0C060AEL,0x106202CBL},{0xF0C060AEL,0x8674078BL},{0xF68D598CL,0x9DF80A0AL}},{{0x8674078BL,2L},{0L,(-1L)},{0x9DF80A0AL,0xF0C060AEL},{0xF0C060AEL,0L},{0L,0x106202CBL},{0x027011A8L,0x4F3DDBD8L}},{{7L,1L},{8L,1L},{7L,0x4F3DDBD8L},{0x027011A8L,0x106202CBL},{0L,0L},{0xF0C060AEL,0xF0C060AEL}},{{0x9DF80A0AL,(-1L)},{0x4F3DDBD8L,8L},{2L,0xA9A21314L},{(-1L),2L},{(-8L),(-1L)},{(-8L),2L}},{{(-1L),0xA9A21314L},{2L,8L},{0x4F3DDBD8L,(-1L)},{0x9DF80A0AL,0xF0C060AEL},{0xF0C060AEL,0L},{0L,0x106202CBL}},{{0x027011A8L,0x4F3DDBD8L},{7L,1L},{8L,1L},{7L,0x4F3DDBD8L},{0x027011A8L,0x106202CBL},{0L,0L}},{{0xF0C060AEL,0xF0C060AEL},{0x9DF80A0AL,(-1L)},{0x4F3DDBD8L,8L},{2L,0xA9A21314L},{(-1L),2L},{(-8L),(-1L)}},{{(-8L),2L},{(-1L),0xA9A21314L},{2L,8L},{0x4F3DDBD8L,(-1L)},{0x9DF80A0AL,0xF0C060AEL},{0xF0C060AEL,0L}}};
                uint16_t ***l_3692 = &g_2522;
                int i, j, k;
                for (l_3258 = 24; (l_3258 <= (-10)); --l_3258)
                { /* block id: 1616 */
                    (*p_14) = 0x061C1BD0L;
                }
                (*l_3684) = (*g_1545);
                l_3685[5][4][0] |= 0L;
                l_3685[5][4][0] &= (safe_div_func_int32_t_s_s((((safe_rshift_func_uint32_t_u_s(((void*)0 == l_3527[5][3]), (safe_rshift_func_int64_t_s_u(((*l_3268) = ((void*)0 == l_3692)), ((*l_3543) = l_3693))))) , l_3694[2][2]) != (((*p_14) & (safe_mod_func_uint16_t_u_u(p_15, ((((safe_rshift_func_uint16_t_u_s(p_17, p_17)) && (*p_14)) | p_17) && p_17)))) , (void*)0)), (*p_16)));
            }
            (*p_14) = (((**g_3404) = (((l_3700 != ((*g_2269) = l_3701[1][1][1])) & (safe_rshift_func_int64_t_s_u((((p_15 | (safe_mod_func_uint8_t_u_u((((****g_3520) == (p_17 ^ (l_3606[1][8] = l_3706))) ^ ((((safe_lshift_func_int16_t_s_u(((((5L & (p_15 || (+p_17))) > 4294967286UL) , p_17) , p_15), p_15)) <= p_17) , 0x2721C2AFL) >= (*p_14))), p_15))) , p_17) == l_3588), 28))) , l_3577)) > p_17);
            for (g_1527 = 14; (g_1527 == (-4)); g_1527 = safe_sub_func_int16_t_s_s(g_1527, 2))
            { /* block id: 1631 */
                uint32_t l_3719[8][3][1] = {{{0UL},{0UL},{0UL}},{{0UL},{0UL},{0UL}},{{0UL},{0UL},{0UL}},{{0UL},{0UL},{0UL}},{{0UL},{0UL},{0UL}},{{0UL},{0UL},{0UL}},{{0UL},{0UL},{0UL}},{{0UL},{0UL},{0UL}}};
                uint8_t ***l_3723 = &g_3513;
                uint32_t *****l_3732 = &l_3731;
                int32_t l_3740 = (-1L);
                int32_t l_3741 = 0x3B4681D0L;
                int32_t l_3742 = 0x97E549F8L;
                int32_t l_3743 = 6L;
                int32_t l_3744 = 0x3B763DF0L;
                int32_t l_3749 = 0x62C6D7FEL;
                int32_t l_3750 = 0xED48A3FBL;
                int32_t l_3751 = (-1L);
                int32_t l_3752 = 0xEF1DE026L;
                int32_t l_3754 = 1L;
                int32_t l_3755 = 0xD9F0DD24L;
                uint8_t l_3756 = 2UL;
                int32_t ****l_3771 = &g_3000[2][4][1];
                const uint16_t ***l_3833 = (void*)0;
                int i, j, k;
                if (g_3607)
                    goto lbl_3712;
            }
        }
        else
        { /* block id: 1717 */
            uint32_t l_3912 = 1UL;
            l_3720[0][1] = (safe_add_func_int8_t_s_s(((2L && ((void*)0 != (*g_1533))) | l_3912), (safe_mul_func_uint16_t_u_u(65535UL, p_15))));
        }
    }
lbl_4241:
    for (g_3608 = 0; (g_3608 > 33); g_3608 = safe_add_func_int16_t_s_s(g_3608, 2))
    { /* block id: 1723 */
        int8_t * const *l_3942 = &g_1547[0];
        int8_t * const **l_3941 = &l_3942;
        int8_t * const ***l_3940 = &l_3941;
        int8_t * const ****l_3939[10] = {&l_3940,&l_3940,&l_3940,&l_3940,&l_3940,&l_3940,&l_3940,&l_3940,&l_3940,&l_3940};
        int32_t l_3947 = (-10L);
        int64_t *l_3949 = (void*)0;
        int32_t l_3950[2][7][10] = {{{0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L},{0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L},{0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L},{0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L},{0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L},{0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L},{0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L}},{{0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L},{0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L},{0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L},{0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L},{0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L},{0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L},{0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L,0xD4DEBEC3L}}};
        uint8_t l_3967 = 9UL;
        const int32_t *l_3986 = &l_3298;
        int i, j, k;
        l_3950[0][1][1] |= ((safe_rshift_func_uint8_t_u_u((((((((safe_lshift_func_int8_t_s_s((safe_sub_func_uint16_t_u_u((((((safe_mod_func_int8_t_s_s((l_3303[4] = (0xAAL && ((~(&l_3251 == &g_2436[1][0][1])) & (safe_lshift_func_uint32_t_u_s((safe_sub_func_int64_t_s_s(((****l_3370) = l_3930), ((*p_14) || (((((((safe_rshift_func_uint16_t_u_u((((safe_sub_func_int64_t_s_s(((((p_15 == ((safe_lshift_func_uint32_t_u_u((((safe_mul_func_int64_t_s_s((((g_3943 = l_3939[2]) == (void*)0) < ((((safe_sub_func_int32_t_s_s(1L, 0x60E133F8L)) | 0xABCF0232F2BF72A3LL) , (*g_1533)) == (void*)0)), p_15)) , l_3947) , 0x755A7683L), (***g_2619))) != p_15)) , 0xB5EE68C1L) , p_17) & l_3947), 5L)) != 8L) != 4L), 4)) , 65533UL) > (**g_1254)) , 0x82L) | 0UL) || p_17) , 0x9D213EC7L)))), l_3948))))), 8UL)) > p_15) , 0x853A03ABL) | (*p_14)) , 0x29A4L), 0xCFD7L)), 7)) || 9L) >= l_3947) > p_17) > p_17) , l_3949) != l_3949), 0)) == 1L);
        if (l_3951[3][0][0])
            continue;
        if ((&g_2040 != (void*)0))
        { /* block id: 1729 */
            int8_t ****l_3952[8] = {&l_3611,&l_3611,&l_3611,&l_3611,&l_3611,&l_3611,&l_3611,&l_3611};
            int32_t l_3968 = 1L;
            int i;
            (*g_275) = ((*p_13) = (((l_3952[7] == &g_3899) && (safe_rshift_func_int32_t_s_u((*p_16), 25))) & (((safe_mod_func_uint16_t_u_u((safe_add_func_uint64_t_u_u((((safe_mod_func_uint8_t_u_u((**g_3513), p_15)) <= ((**g_1254) >= ((*g_3405) = (p_15 <= (safe_mul_func_int8_t_s_s(((safe_sub_func_uint8_t_u_u((((void*)0 == &g_1973) && l_3950[0][1][1]), p_17)) ^ p_15), 255UL)))))) | p_17), p_15)), l_3967)) & 0xECL) ^ l_3968)));
        }
        else
        { /* block id: 1733 */
            int32_t *l_3978 = &l_3930;
            int32_t **l_3977 = &l_3978;
            int32_t l_3983 = (-1L);
            int64_t l_3984 = 0L;
            l_3985 = func_22(((p_17 & (((**g_3404) > (0x432AF685L || ((safe_div_func_uint32_t_u_u(((safe_mod_func_int64_t_s_s((((safe_mod_func_uint32_t_u_u((safe_lshift_func_int32_t_s_u((l_3950[0][5][5] = (((0L < (p_15 , ((void*)0 != l_3977))) != 0L) , ((((((safe_lshift_func_int64_t_s_s(((((((safe_div_func_int16_t_s_s(p_15, p_17)) >= 4UL) < p_15) | l_3983) != l_3947) >= p_15), 25)) | 0xC4L) >= l_3967) != l_3950[1][1][1]) & l_3984) , (*p_13)))), p_15)), 6UL)) & p_17) >= l_3967), p_15)) && p_17), 4294967293UL)) != 0x1A8AL))) <= l_3967)) >= p_15));
            (*l_3985) |= 0x629F7BE8L;
            if ((*p_14))
                break;
            l_3986 = (void*)0;
        }
    }
    if ((((safe_add_func_uint32_t_u_u((safe_rshift_func_int8_t_s_u((*g_778), 6)), ((safe_mod_func_int16_t_s_s(p_15, ((*l_3985) , (safe_sub_func_uint16_t_u_u(1UL, (((safe_div_func_uint8_t_u_u(((*l_4014) = (safe_rshift_func_int8_t_s_s(((safe_sub_func_int64_t_s_s(0x2B1300E0EED8B486LL, ((safe_lshift_func_uint16_t_u_s(((((((((p_17 == (*l_3985)) ^ p_17) == ((++(*g_3514)) == ((safe_unary_minus_func_uint16_t_u((safe_sub_func_int8_t_s_s(((safe_mod_func_uint8_t_u_u((safe_lshift_func_uint8_t_u_s((((*l_4012) |= 9L) , 246UL), 7)), 0xF6L)) > p_17), 0x0EL)))) >= (*l_3985)))) != (**g_3404)) | p_17) < p_17) != g_4013) == 0x05L), (*g_3405))) , 0x441DC6A8F81159A6LL))) <= 0xA8L), p_17))), 0xDDL)) && 0UL) & 0UL)))))) != 8L))) >= p_17) == p_17))
    { /* block id: 1744 */
        uint64_t l_4046[6] = {0x9DE4C44DC16CEBEFLL,0x2E78D8633BBEBBE4LL,0x2E78D8633BBEBBE4LL,0x9DE4C44DC16CEBEFLL,0x2E78D8633BBEBBE4LL,0x2E78D8633BBEBBE4LL};
        int32_t l_4048 = 0x31CE104FL;
        uint32_t l_4049 = 4294967295UL;
        int16_t l_4050 = 0L;
        int8_t *****l_4065 = (void*)0;
        int i;
        for (l_3254 = 1; (l_3254 <= 7); l_3254 += 1)
        { /* block id: 1747 */
            int8_t l_4015 = (-1L);
            uint16_t ***l_4041[1];
            uint16_t ****l_4040 = &l_4041[0];
            uint16_t *****l_4039 = &l_4040;
            int i;
            for (i = 0; i < 1; i++)
                l_4041[i] = &g_2522;
            (*l_3985) ^= l_4015;
            (*g_275) = ((safe_div_func_int16_t_s_s((safe_sub_func_int8_t_s_s((safe_mod_func_uint32_t_u_u(((****g_3520) = (*l_3985)), ((safe_rshift_func_uint16_t_u_u(((safe_lshift_func_int8_t_s_u(l_4026, 4)) , ((safe_mul_func_uint64_t_u_u(((safe_add_func_uint16_t_u_u((l_4015 & l_4015), (safe_add_func_int16_t_s_s((safe_mod_func_int32_t_s_s(((*l_4012) = (safe_lshift_func_int16_t_s_u((((safe_mod_func_int16_t_s_s(p_17, ((l_4015 ^ p_15) , ((l_4039 != ((safe_lshift_func_uint32_t_u_s((((((*l_3268) = (l_4048 = ((safe_mul_func_int16_t_s_s((l_4047 = ((**g_3404) = l_4046[3])), 0L)) == 0xEB691D0C3E6BB217LL))) ^ l_4015) && (-1L)) <= 4294967295UL), 23)) , &g_1888)) | l_4049)))) >= l_4015) >= p_17), 9))), p_15)), l_4049)))) <= l_4046[5]), p_17)) , p_17)), l_4050)) , 0x314147C7L))), p_15)), 0x85C3L)) ^ p_17);
            (*g_74) = func_22((*g_1217));
            (*g_74) = func_22(((**l_3469) |= p_17));
            for (g_4013 = 0; (g_4013 <= 2); g_4013 += 1)
            { /* block id: 1761 */
                int32_t *l_4056 = &l_3748[4][2];
                int32_t **l_4055 = &l_4056;
                int8_t l_4057 = 0x6DL;
                int i;
                (*g_275) = ((safe_mod_func_int8_t_s_s((p_17 , (((((safe_rshift_func_int16_t_s_u(0xFDE4L, 6)) >= (((l_4055 != (void*)0) >= l_4057) ^ ((*g_3514) = ((!(g_4059 ^ ((*g_3622) >= ((*p_14) = (safe_rshift_func_uint16_t_u_s(((l_4062 = l_4062) != g_3500[4]), 10)))))) && (*l_3985))))) > 0x8359824401C48FC5LL) , l_4048) && 0UL)), l_4015)) <= (*g_3405));
                for (l_3302 = 0; (l_3302 <= 4); l_3302 += 1)
                { /* block id: 1768 */
                    int i, j;
                    (*l_3985) ^= 0x65B02914L;
                }
            }
        }
        (*g_275) = (((((((safe_mul_func_int16_t_s_s(p_17, ((-1L) != 0x8B11L))) , 0xA8CAD90D09F6DDFDLL) && (*l_4012)) && (((0UL >= ((void*)0 == l_4065)) && (((*g_3405) ^= (**g_1216)) , (-2L))) , 1UL)) , (*g_1217)) == p_15) != (*l_4012));
        (*l_3985) = (((void*)0 == l_4066) <= ((void*)0 == (*g_2901)));
    }
    else
    { /* block id: 1776 */
        const uint32_t l_4067 = 1UL;
        const int32_t **l_4075 = &g_3903[2][0][2];
        const int32_t ***l_4074 = &l_4075;
        int32_t *l_4086 = &l_3748[1][0];
        int32_t **l_4085[1];
        uint16_t l_4087 = 0x40CCL;
        int32_t l_4136 = (-1L);
        int32_t l_4138 = 2L;
        int32_t l_4141 = 0xF353C284L;
        uint64_t **l_4259 = (void*)0;
        uint64_t ***l_4258 = &l_4259;
        uint64_t ****l_4257 = &l_4258;
        const uint32_t l_4284 = 0x0AD43505L;
        int32_t l_4298 = 0x73207411L;
        int32_t l_4299[2];
        int16_t ***l_4321 = &g_3404;
        int16_t ****l_4320[4];
        uint32_t l_4332 = 0xD86F1057L;
        int8_t l_4339 = 4L;
        int i;
        for (i = 0; i < 1; i++)
            l_4085[i] = &l_4086;
        for (i = 0; i < 2; i++)
            l_4299[i] = 0xFFF41DDBL;
        for (i = 0; i < 4; i++)
            l_4320[i] = &l_4321;
        if (((1UL > p_15) > ((*g_1973) = (l_4067 | (**g_1216)))))
        { /* block id: 1778 */
            int32_t * const **l_4073 = &g_3013[0][0][8];
            int32_t * const ***l_4072 = &l_4073;
            int32_t l_4137 = 0x0066BE38L;
            int32_t l_4139 = (-10L);
            int32_t l_4140 = 0L;
            int32_t *l_4179 = &l_4137;
            int16_t l_4207 = (-1L);
            if ((((*g_275) , (safe_sub_func_int32_t_s_s(((((safe_rshift_func_int32_t_s_s((((((*l_4072) = &g_3201) != l_4074) & p_17) , ((4294967295UL != (+((p_17 & ((**g_1266) | ((*g_1973) = (safe_mod_func_uint16_t_u_u((safe_lshift_func_int8_t_s_u((((safe_lshift_func_int8_t_s_s((((((g_4083[2] != l_4085[0]) , (**g_1266)) , p_14) == &l_3297) == p_17), p_17)) ^ 0x0BL) | l_4087), 4)), 65531UL))))) | p_15))) | p_17)), 18)) & (**g_3513)) <= p_15) >= p_15), (*l_3985)))) , 0x0AE734F1L))
            { /* block id: 1781 */
                const int32_t l_4100 = 0x10B913A8L;
                uint16_t *l_4106 = &g_2609;
                int32_t l_4107[8][8] = {{0x819D5A33L,0x13FE74C1L,0x13FE74C1L,0x819D5A33L,0x13FE74C1L,0x13FE74C1L,0x819D5A33L,0x13FE74C1L},{0x819D5A33L,0x819D5A33L,0x70A65522L,0x819D5A33L,0x819D5A33L,0x70A65522L,0x819D5A33L,0x819D5A33L},{0x13FE74C1L,0x819D5A33L,0x13FE74C1L,0x13FE74C1L,0x819D5A33L,0x13FE74C1L,0x13FE74C1L,0x819D5A33L},{0x819D5A33L,0x13FE74C1L,0x13FE74C1L,0x819D5A33L,0x13FE74C1L,0x13FE74C1L,0x819D5A33L,0x13FE74C1L},{0x819D5A33L,0x819D5A33L,0x70A65522L,0x819D5A33L,0x819D5A33L,0x70A65522L,0x819D5A33L,0x819D5A33L},{0x13FE74C1L,0x819D5A33L,0x13FE74C1L,0x13FE74C1L,0x819D5A33L,0x13FE74C1L,0x13FE74C1L,0x819D5A33L},{0x819D5A33L,0x13FE74C1L,0x13FE74C1L,0x819D5A33L,0x13FE74C1L,0x13FE74C1L,0x819D5A33L,0x13FE74C1L},{0x819D5A33L,0x819D5A33L,0x70A65522L,0x819D5A33L,0x819D5A33L,0x70A65522L,0x819D5A33L,0x819D5A33L}};
                int32_t *l_4108 = &g_1294;
                int32_t *l_4109 = &l_3257;
                int32_t *l_4110 = &l_3303[2];
                int32_t *l_4111 = &l_3258;
                int32_t *l_4112 = (void*)0;
                int32_t *l_4113 = &g_820[2][0];
                int32_t *l_4114 = &g_820[2][0];
                int32_t *l_4115 = &l_3258;
                int32_t *l_4116 = &l_3299;
                int32_t *l_4117 = &l_3257;
                int32_t *l_4118 = (void*)0;
                int32_t *l_4119 = &l_3298;
                int32_t *l_4120 = &l_4107[0][2];
                int32_t *l_4121 = (void*)0;
                int32_t *l_4122 = &l_3298;
                int32_t *l_4123 = (void*)0;
                int32_t *l_4124 = &l_3295;
                int32_t *l_4125 = &g_11;
                int32_t *l_4126 = &l_3297;
                int32_t *l_4127 = &g_820[2][0];
                int32_t *l_4128 = &l_3297;
                int32_t *l_4129 = &l_3562;
                int32_t *l_4130 = &l_4107[0][4];
                int32_t *l_4131 = &l_3299;
                int32_t *l_4132 = &l_3295;
                int32_t *l_4133 = (void*)0;
                int32_t *l_4134[3][6] = {{&l_3562,&l_3562,&l_3562,&l_3562,&l_3562,&l_3562},{&l_3562,&l_3562,&l_3562,&l_3562,&l_3562,&l_3562},{&l_3562,&l_3562,&l_3562,&l_3562,&l_3562,&l_3562}};
                int32_t l_4135 = 1L;
                uint32_t l_4142 = 18446744073709551609UL;
                int32_t *** const l_4152[2] = {&g_1181[0],&g_1181[0]};
                int8_t ****l_4171 = &g_3899;
                int i, j;
                (*p_13) &= (((*g_1973) < (safe_mod_func_uint32_t_u_u(p_15, (safe_sub_func_int64_t_s_s((safe_mul_func_uint16_t_u_u(p_15, (0xB78CL > (safe_mul_func_uint16_t_u_u((safe_rshift_func_uint16_t_u_s(((((safe_div_func_uint16_t_u_u((l_4100 > (safe_mul_func_uint8_t_u_u((*l_4012), ((*l_4012) > (+(safe_lshift_func_uint64_t_u_u((((void*)0 != l_4106) == 0xD0C5FD78DB5841ECLL), l_4100))))))), p_17)) == p_17) != (-9L)) && 0x42E7FF2BL), p_17)), 0x7E7DL))))), p_15))))) | p_17);
                --l_4142;
                for (l_4142 = 0; (l_4142 != 15); l_4142 = safe_add_func_uint32_t_u_u(l_4142, 5))
                { /* block id: 1786 */
                    uint16_t l_4151 = 0UL;
                    int8_t *** const *l_4170 = &g_3899;
                    for (l_3257 = 0; (l_3257 > 16); l_3257++)
                    { /* block id: 1789 */
                        int64_t **l_4169 = &g_210;
                        uint64_t l_4172 = 4UL;
                        (*l_4122) = ((((safe_div_func_uint16_t_u_u(((*l_3985) &= ((*l_4106) = (l_4151 > (l_4152[0] != (*l_3243))))), ((*g_1217) & (safe_add_func_int32_t_s_s(((*l_4012) = (safe_rshift_func_int64_t_s_s(((****l_3370) = (((((*l_4119) <= ((-4L) >= ((~(safe_add_func_int8_t_s_s(((((+(safe_div_func_int32_t_s_s((safe_rshift_func_uint8_t_u_s(((safe_mul_func_uint16_t_u_u(p_17, (((*l_3371) == ((safe_lshift_func_int32_t_s_u(p_15, 31)) , l_4169)) & (*l_4127)))) >= 3L), 1)), p_17))) , l_4170) != l_4171) ^ p_15), l_4151))) < p_17))) | l_4172) && (*g_3405)) && p_15)), (*l_4012)))), 0x3AA3B8C4L))))) , (-1L)) | 0x263C58A5L) < (*l_4113));
                    }
                    for (l_3577 = 0; (l_3577 >= 24); l_3577 = safe_add_func_uint16_t_u_u(l_3577, 9))
                    { /* block id: 1798 */
                        return (*g_778);
                    }
                }
            }
            else
            { /* block id: 1802 */
                int8_t l_4190 = 0xB3L;
                int32_t l_4220 = 0x2C83C740L;
                int16_t ***l_4222[6][2][9] = {{{&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404},{&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404}},{{&g_3404,&g_3404,&g_3404,(void*)0,(void*)0,&g_3404,(void*)0,&g_3404,&g_3404},{&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404}},{{&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,(void*)0,&g_3404,(void*)0,&g_3404},{&g_3404,(void*)0,(void*)0,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404}},{{&g_3404,&g_3404,&g_3404,(void*)0,&g_3404,&g_3404,(void*)0,&g_3404,&g_3404},{&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404}},{{&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,(void*)0,&g_3404},{&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404}},{{&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,(void*)0},{&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404,&g_3404}}};
                int16_t ****l_4221 = &l_4222[5][0][5];
                uint64_t l_4223 = 0UL;
                int i, j, k;
                for (g_111 = 12; (g_111 <= 50); g_111 = safe_add_func_int16_t_s_s(g_111, 8))
                { /* block id: 1805 */
                    uint64_t * const ***l_4181 = (void*)0;
                    uint64_t * const ****l_4180[5];
                    int i;
                    for (i = 0; i < 5; i++)
                        l_4180[i] = &l_4181;
                    for (l_4136 = (-14); (l_4136 == (-18)); l_4136 = safe_sub_func_uint32_t_u_u(l_4136, 6))
                    { /* block id: 1808 */
                        l_4179 = func_22(p_15);
                        if ((*p_14))
                            continue;
                        l_4182 = l_4180[4];
                    }
                }
                for (g_4059 = 0; (g_4059 != 0); ++g_4059)
                { /* block id: 1816 */
                    int32_t l_4200[10][4] = {{0xD216E5E9L,0xD216E5E9L,0xD216E5E9L,0xD216E5E9L},{0xD216E5E9L,0xD216E5E9L,0xD216E5E9L,0xD216E5E9L},{0xD216E5E9L,0xD216E5E9L,0xD216E5E9L,0xD216E5E9L},{0xD216E5E9L,0xD216E5E9L,0xD216E5E9L,0xD216E5E9L},{0xD216E5E9L,0xD216E5E9L,0xD216E5E9L,0xD216E5E9L},{0xD216E5E9L,0xD216E5E9L,0xD216E5E9L,0xD216E5E9L},{0xD216E5E9L,0xD216E5E9L,0xD216E5E9L,0xD216E5E9L},{0xD216E5E9L,0xD216E5E9L,0xD216E5E9L,0xD216E5E9L},{0xD216E5E9L,0xD216E5E9L,0xD216E5E9L,0xD216E5E9L},{0xD216E5E9L,0xD216E5E9L,0xD216E5E9L,0xD216E5E9L}};
                    int32_t l_4201 = 0x6FAEDB38L;
                    uint32_t ***l_4204 = &g_2620;
                    uint32_t ****l_4205 = &g_2619;
                    int i, j;
                    if ((safe_lshift_func_uint32_t_u_s((((((**g_1546) |= ((*p_14) , (l_4190 < 0x4E5FL))) ^ p_17) , ((((((**g_1254) = (~(safe_lshift_func_uint16_t_u_u(((safe_lshift_func_uint64_t_u_u((p_15 < p_17), (safe_mod_func_int32_t_s_s((*p_13), (((safe_mod_func_uint16_t_u_u((p_15 , (l_4190 & (*l_3985))), (*g_1217))) < p_17) , (***g_2619)))))) & 0x99L), l_4200[0][3])))) && p_17) <= (**g_1266)) | l_4201) == p_15)) == (*g_375)), 11)))
                    { /* block id: 1819 */
                        (*g_275) = (((p_17 || 0x417FL) || (((safe_add_func_int16_t_s_s(((*g_3405) = ((p_17 >= (*g_1217)) | p_15)), p_15)) | 0x1E5DE67BL) <= l_4190)) == ((*p_14) ^= ((void*)0 == l_4204)));
                        l_4205 = &g_2623;
                        if ((*l_4179))
                            break;
                        if ((*l_4179))
                            continue;
                    }
                    else
                    { /* block id: 1826 */
                        (*g_275) = ((*l_4012) = 0xC2D19084L);
                        if (l_4190)
                            continue;
                    }
                    if (l_4206)
                        continue;
                }
                (*g_275) ^= ((l_4207 < (p_17 & p_17)) < ((safe_add_func_uint16_t_u_u(p_17, (l_4190 <= (((safe_div_func_uint64_t_u_u((safe_sub_func_int64_t_s_s((safe_add_func_uint8_t_u_u((0x51A9L != ((((safe_rshift_func_int16_t_s_s(((**g_3404) = (safe_mul_func_int16_t_s_s(((l_4220 , (l_4221 != (void*)0)) ^ (*p_14)), p_15))), 7)) > l_4223) && 0UL) >= (*p_16))), p_15)), 0x4ABBFA7F8D447F79LL)), 0xC437238D2D0EFE05LL)) || (*l_4179)) , l_4223)))) > p_15));
            }
        }
        else
        { /* block id: 1836 */
            return p_15;
        }
        for (g_2357 = 7; (g_2357 >= 23); ++g_2357)
        { /* block id: 1841 */
            uint8_t l_4237 = 0xD0L;
            int32_t l_4253 = 0x614FEFD1L;
            uint16_t ***l_4289 = &g_2522;
            int32_t l_4290 = 0L;
            int32_t l_4294 = 0x26C77B0BL;
            int32_t l_4295 = 0L;
            int32_t l_4296 = 4L;
            int32_t l_4297[4][7][7] = {{{0L,0L,(-6L),0x83AC69C9L,0x567B0E9FL,0xA59AC468L,(-10L)},{0L,0xF57C44D8L,0x2FA3D101L,0xA7611F6DL,0x567B0E9FL,0L,0L},{0xA8C50790L,1L,0xA7611F6DL,1L,0xA8C50790L,(-1L),0x60CB00EDL},{0x89A77E12L,0x567B0E9FL,(-1L),0x9F4EE447L,(-6L),0xA3A179A3L,0xC1D7A0BEL},{(-1L),0x78F439E3L,1L,0x22D0E7BCL,1L,0xD263616BL,(-1L)},{0x89A77E12L,0x9F4EE447L,0x8E9B7926L,0L,0L,(-6L),0x83AC69C9L},{0xA8C50790L,(-1L),0L,1L,(-3L),3L,(-6L)}},{{0L,0L,0xCC73E7C2L,1L,0xA7611F6DL,0x78F439E3L,0xA7611F6DL},{0L,(-1L),(-1L),0L,0L,(-10L),(-1L)},{0x2FA3D101L,0L,0xA7E6397BL,0x22D0E7BCL,0xF89951ACL,0x9F4EE447L,6L},{(-1L),0L,0x567B0E9FL,1L,0x8E9B7926L,(-1L),(-1L)},{0xD263616BL,0xA7611F6DL,(-10L),1L,0xA59AC468L,0xF57C44D8L,(-1L)},{0xA7611F6DL,3L,0xD1DC50AAL,(-1L),(-3L),0x22D0E7BCL,0xD263616BL},{0x22D0E7BCL,0x773CFD7DL,0xD1DC50AAL,(-1L),0x83AC69C9L,0x83AC69C9L,(-1L)}},{{(-10L),(-6L),(-10L),0L,(-1L),0L,0xA8C50790L},{0L,(-1L),0x567B0E9FL,0x2FA3D101L,0xA7E6397BL,0xA3A179A3L,0x83AC69C9L},{0x89A77E12L,0xC1D7A0BEL,(-6L),0x567B0E9FL,0L,0L,0xA7E6397BL},{0x9F4EE447L,0x8E9B7926L,0L,0L,(-6L),0x83AC69C9L,0x567B0E9FL},{0L,0xD263616BL,0x9F4EE447L,0xA7611F6DL,0x89A77E12L,0x22D0E7BCL,0L},{(-1L),0xD263616BL,0xEC4D18DCL,0xF57C44D8L,0xD1DC50AAL,0xF57C44D8L,0xEC4D18DCL},{0x8E9B7926L,0x8E9B7926L,0xA3A179A3L,0L,1L,(-1L),0x773CFD7DL}},{{0x987A5CDCL,0xC1D7A0BEL,0xF57C44D8L,6L,0xF89951ACL,1L,(-1L)},{0L,(-1L),0xA8C50790L,0xD263616BL,1L,0L,0x2FA3D101L},{0x78F439E3L,(-6L),(-1L),0x22D0E7BCL,0xD1DC50AAL,1L,0xA3A179A3L},{0xA3A179A3L,0x773CFD7DL,0xCC73E7C2L,0x78F439E3L,0x89A77E12L,0xA59AC468L,6L},{0xA3A179A3L,3L,0xD263616BL,(-6L),(-6L),0xD263616BL,3L},{0x78F439E3L,0xA7611F6DL,1L,0xCC73E7C2L,0L,0L,0L},{0L,0L,0x89A77E12L,0xA8C50790L,0xA7E6397BL,(-3L),0L}}};
            int i, j, k;
            for (g_484 = (-26); (g_484 != 28); g_484 = safe_add_func_int8_t_s_s(g_484, 2))
            { /* block id: 1844 */
                uint32_t l_4249 = 1UL;
                int32_t l_4286 = 0L;
                int32_t l_4287 = 0xBE7D7A5CL;
                int32_t *l_4291 = &l_4286;
                int32_t *l_4292 = &l_3258;
                int32_t *l_4293[6][7][6] = {{{&g_11,&l_3562,&l_3302,&l_3298,&l_3302,&l_3297},{&l_4253,&l_3297,&l_4138,(void*)0,&l_3297,&l_3257},{(void*)0,&l_4141,&l_3257,(void*)0,&l_3693,&l_3303[4]},{&l_4253,&l_3298,&l_4253,&g_820[2][0],&l_4253,&l_3298},{&l_3258,&l_3302,&l_3297,(void*)0,&l_4138,&l_3257},{&l_3302,&l_4253,&l_3302,&l_4141,&l_3299,&l_3693},{&l_3302,&l_4253,&l_4253,(void*)0,&l_4138,&l_3693}},{{&l_3297,&l_3302,&l_3299,(void*)0,&l_4253,&l_4253},{&l_4253,&l_3298,&g_820[2][0],&l_3297,&l_3693,(void*)0},{(void*)0,&l_4141,(void*)0,&l_3297,&l_3297,&l_3297},{&l_3302,&l_3297,&l_4253,&l_3693,&l_3302,&l_3302},{&l_3297,&g_820[2][0],&l_4138,&l_4253,&l_4253,&l_4138},{&l_3298,&l_3298,(void*)0,(void*)0,(void*)0,&l_4141},{&l_3297,&l_3299,(void*)0,&l_4138,&g_820[2][0],(void*)0}},{{&l_4253,&l_3297,(void*)0,&l_3299,&l_3298,&l_4141},{&l_3297,&l_3299,(void*)0,&l_3562,(void*)0,&l_4138},{&l_3562,(void*)0,&l_4138,&l_3562,&l_3257,&l_3302},{&l_3693,&l_3302,&l_3297,&l_4141,&l_3299,&g_1294},{&l_3299,&l_4141,&l_3302,&l_4253,&l_3302,&g_820[2][0]},{&l_3562,&l_3303[4],&l_3302,&l_3297,(void*)0,&l_3297},{&l_3562,&l_3297,&l_3562,&l_3257,&l_3297,(void*)0}},{{&l_3299,&l_3562,&l_4141,&l_3302,&l_4290,(void*)0},{&l_3297,&l_3562,&g_820[2][0],&l_3302,&l_4141,&l_3257},{&l_3299,(void*)0,(void*)0,&l_3257,&l_3297,&l_4253},{&l_3562,&l_3302,&l_3297,&l_3297,&l_4136,&l_3562},{&l_3562,&l_4253,&l_3257,&l_4253,&l_3258,&l_3693},{&l_3299,&l_4136,&l_4253,&l_4141,(void*)0,(void*)0},{&l_3693,&l_4290,&l_4253,&l_3562,(void*)0,(void*)0}},{{&l_3562,&l_3693,&l_3693,&l_3562,&l_3562,&l_3257},{&l_3297,&l_3302,&l_4253,&l_3299,&l_3257,&l_3562},{&l_4253,(void*)0,&g_820[2][0],&l_4138,&l_3257,&l_3302},{&l_3297,&l_3302,&l_3297,(void*)0,&l_3562,&l_3302},{&l_3298,&l_3693,&l_3693,&l_4253,(void*)0,&l_3302},{&l_3297,&l_4290,&l_3297,(void*)0,(void*)0,(void*)0},{&l_4253,&l_4136,&g_820[2][0],(void*)0,&l_3258,(void*)0}},{{&l_3302,&l_4253,&l_3297,&g_1294,&l_4136,&l_3257},{&l_3297,&l_3302,&l_3258,&l_3302,&l_3297,(void*)0},{&g_1294,(void*)0,&l_3562,&g_820[2][0],&l_4141,&l_3299},{(void*)0,&l_3562,&l_3297,(void*)0,&l_4290,&l_3299},{&l_3303[4],&l_3562,&l_3562,&l_4253,&l_3297,(void*)0},{&l_4290,&l_3297,&l_3258,&l_3257,(void*)0,&l_3257},{&l_4141,&l_3303[4],&l_3297,&l_3302,&l_3302,(void*)0}}};
                int i, j, k;
                l_4136 ^= (*p_16);
                for (l_3930 = 3; (l_3930 >= 0); l_3930 -= 1)
                { /* block id: 1848 */
                    uint16_t l_4230 = 0x3B1EL;
                    uint32_t *l_4252 = &g_483;
                    uint64_t ****l_4262 = &l_4258;
                    const uint64_t ** const *l_4264 = &g_1266;
                    const uint64_t ** const **l_4263 = &l_4264;
                    int32_t l_4265 = 0x7AAE73F2L;
                    (*l_4075) = p_14;
                    if ((safe_add_func_uint64_t_u_u(l_4230, (((((safe_lshift_func_int32_t_s_s(((safe_rshift_func_uint64_t_u_s(p_17, ((*g_375) != ((0UL != 0x2A17L) , ((((**g_2619) = func_22(p_15)) == (void*)0) || ((safe_add_func_uint16_t_u_u((l_4237 = (l_4230 <= (-4L))), 0UL)) ^ p_15)))))) , 0L), l_4230)) ^ l_4230) <= 0x3C6001B998DD83BDLL) != p_17) == p_17))))
                    { /* block id: 1852 */
                        uint32_t l_4238 = 18446744073709551615UL;
                        l_4238--;
                        if (l_4237)
                            break;
                        (*l_4012) = l_4238;
                        if (g_3439)
                            goto lbl_4241;
                    }
                    else
                    { /* block id: 1857 */
                        return p_15;
                    }
                    for (g_184 = 0; (g_184 <= 3); g_184 += 1)
                    { /* block id: 1862 */
                        uint64_t *****l_4260 = (void*)0;
                        uint64_t *****l_4261[3][1][4] = {{{&l_4257,&l_4257,&l_4257,&l_4257}},{{&l_4257,&l_4257,&l_4257,&l_4257}},{{&l_4257,&l_4257,&l_4257,&l_4257}}};
                        int32_t l_4281 = 0xA31A9396L;
                        int32_t l_4285 = 1L;
                        int32_t l_4288 = (-5L);
                        int i, j, k;
                        l_4265 = ((p_15 > (safe_div_func_uint16_t_u_u((~(((**g_1254) = 0x6168L) < (safe_sub_func_uint16_t_u_u((l_4249 = (safe_lshift_func_int16_t_s_u(l_4237, 9))), (255UL != ((***g_1545) = ((l_4230 , ((safe_mul_func_uint16_t_u_u((l_4253 = ((void*)0 != l_4252)), (0xCFL <= ((~(safe_add_func_uint32_t_u_u(((l_4262 = l_4257) != l_4263), 1L))) , p_17)))) , p_15)) >= p_15))))))), 0x0A6FL))) , (-1L));
                        if ((*p_14))
                            break;
                        (*p_14) = (((safe_rshift_func_int64_t_s_s((((((((void*)0 != (*l_3371)) & (safe_unary_minus_func_int8_t_s(0x03L))) ^ p_17) & (((l_4252 == (void*)0) <= (safe_mod_func_int32_t_s_s((safe_sub_func_uint64_t_u_u((l_4288 ^= ((**l_4185) = ((l_4287 = ((**g_1254) ^= (safe_add_func_uint64_t_u_u(((safe_mul_func_uint16_t_u_u((l_4286 = (l_4138 |= (safe_add_func_int32_t_s_s(((l_4136 = (safe_sub_func_int32_t_s_s((*p_13), l_4281))) && (l_4285 &= ((*g_3405) = (((safe_div_func_uint16_t_u_u(l_4284, l_4281)) >= 8L) | (**g_3513))))), l_4281)))), l_4230)) , 18446744073709551615UL), l_4281)))) , 0x3AB29AFF89D8E522LL))), p_15)), (-5L)))) > 0xEE5EL)) , l_4289) != (void*)0), l_4265)) == p_15) != l_4281);
                    }
                    (**l_4074) = func_22(p_15);
                }
                ++l_4300;
            }
            return p_17;
        }
        (*g_275) = (-2L);
        if (((*l_4012) = ((*p_13) = l_4136)))
        { /* block id: 1890 */
            (*l_4075) = (*l_4075);
            (*p_13) = (-1L);
        }
        else
        { /* block id: 1893 */
            int16_t l_4313 = (-9L);
            int16_t ***l_4319 = &g_3404;
            int16_t ****l_4318 = &l_4319;
            int32_t l_4323[9] = {1L,1L,9L,1L,1L,9L,1L,1L,9L};
            int32_t l_4324 = 0xC1DF6277L;
            int32_t *l_4325 = &l_4323[5];
            int32_t *l_4326 = &l_4323[8];
            int32_t *l_4327 = &g_820[5][0];
            int32_t *l_4328 = &l_3693;
            int32_t *l_4329 = &l_3298;
            int32_t *l_4330 = &l_3297;
            int32_t *l_4331[8][9] = {{(void*)0,&l_3295,&g_1294,&l_3295,(void*)0,(void*)0,&l_3295,&g_1294,&l_3295},{&l_3295,&l_3562,&g_1294,&g_1294,&l_3562,&l_3295,&l_3562,&g_1294,&g_1294},{(void*)0,(void*)0,&l_3295,&g_1294,&l_3295,(void*)0,(void*)0,&l_3295,&g_1294},{&l_3257,&l_3562,&l_3257,&l_3295,&l_3295,&l_3257,&l_3562,&l_3257,&l_3295},{&l_3257,&l_3295,&l_3295,&l_3257,&l_3562,&l_3257,&l_3295,&l_3295,&l_3257},{(void*)0,&l_3295,&g_1294,&l_3295,(void*)0,(void*)0,&l_3295,&g_1294,&l_3295},{&l_3295,&l_3562,&g_1294,&g_1294,&l_3562,&l_3295,&l_3562,&g_1294,&g_1294},{(void*)0,(void*)0,&l_3295,&g_1294,&l_3295,(void*)0,(void*)0,&l_3295,&g_1294}};
            int32_t l_4335[10][5][5] = {{{1L,(-1L),0x97F213C8L,(-1L),1L},{4L,1L,9L,0xBD4BF0A5L,(-1L)},{0x5AA8DD26L,(-4L),0xE9ACD06FL,0x14E26DD5L,(-10L)},{0x86E7FB34L,9L,(-1L),1L,(-1L)},{8L,0x14E26DD5L,9L,0L,1L}},{{(-1L),(-1L),0x633B4A12L,0L,0xBD63A894L},{0x97F213C8L,(-10L),(-10L),0xA96FB952L,0x315E37E8L},{5L,(-1L),(-1L),5L,0xA2454156L},{0L,0x14E26DD5L,(-1L),(-1L),(-1L)},{0x633B4A12L,9L,0xE6D8D1EDL,0x86E7FB34L,(-1L)}},{{0xB219FC28L,(-4L),1L,(-1L),0L},{0xBD63A894L,1L,0x1F276044L,5L,4L},{(-2L),(-1L),8L,0xA96FB952L,(-1L)},{1L,0xE0FD2ED1L,0x3AF24F68L,0L,0L},{(-2L),0x78428333L,(-2L),0L,0xA2C82EA3L}},{{0xBD63A894L,0x1F276044L,0x86E7FB34L,1L,0xBD4BF0A5L},{0xB219FC28L,0xA96FB952L,(-1L),0x14E26DD5L,0x4EEBAE75L},{0x633B4A12L,0xBD4BF0A5L,0x86E7FB34L,0xBD4BF0A5L,0x633B4A12L},{0L,5L,(-2L),(-1L),8L},{5L,4L,0x3AF24F68L,(-1L),0xE6D8D1EDL}},{{0x97F213C8L,0L,0x97F213C8L,(-10L),0x97F213C8L},{0x86E7FB34L,0x86E7FB34L,0xE0FD2ED1L,4L,9L},{0x97F213C8L,1L,(-2L),(-1L),0xE9ACD06FL},{1L,0xBD4BF0A5L,0L,0x013AF14BL,(-1L)},{0x4EEBAE75L,1L,(-10L),0x182E245AL,9L}},{{(-1L),0x86E7FB34L,0xE6D8D1EDL,9L,0x633B4A12L},{(-2L),0L,(-1L),5L,(-10L)},{0xBD4BF0A5L,(-1L),9L,9L,(-1L)},{0xE9ACD06FL,(-10L),1L,0x182E245AL,(-1L)},{0xA2454156L,(-1L),0x86E7FB34L,0x013AF14BL,0xE6D8D1EDL}},{{0x5AA8DD26L,(-10L),0L,(-1L),1L},{0xA2454156L,0xE0FD2ED1L,0xA2454156L,4L,0x1F276044L},{0xE9ACD06FL,0xA96FB952L,1L,(-10L),8L},{0xBD4BF0A5L,0x013AF14BL,0x633B4A12L,0x86E7FB34L,0x3AF24F68L},{(-2L),0x14E26DD5L,1L,0x14E26DD5L,(-2L)}},{{(-1L),5L,0xA2454156L,(-1L),0x86E7FB34L},{0x4EEBAE75L,0L,0L,0x79D5BB68L,(-1L)},{1L,0xA2454156L,0x86E7FB34L,5L,0x86E7FB34L},{0x97F213C8L,0x79D5BB68L,1L,(-4L),(-2L)},{0x86E7FB34L,0xE6D8D1EDL,9L,0x633B4A12L,0x3AF24F68L}},{{1L,(-1L),(-1L),(-10L),8L},{0xBD63A894L,0xE6D8D1EDL,0xE6D8D1EDL,0xBD63A894L,0x1F276044L},{(-1L),0x79D5BB68L,(-10L),0x7A126096L,1L},{9L,0xA2454156L,0L,1L,0xE6D8D1EDL},{0x315E37E8L,0L,(-2L),0x7A126096L,(-1L)}},{{0x3AF24F68L,5L,0xE0FD2ED1L,0xBD63A894L,(-1L)},{0xA2C82EA3L,0x14E26DD5L,0x97F213C8L,(-10L),(-10L)},{5L,0x013AF14BL,4L,0x633B4A12L,0x633B4A12L},{0xA2C82EA3L,0xA96FB952L,0xA2C82EA3L,(-4L),9L},{0x3AF24F68L,0xE0FD2ED1L,1L,5L,(-1L)}}};
            int16_t l_4336 = 0xDBC0L;
            int16_t l_4337 = 0xD163L;
            int8_t l_4338 = 0L;
            int64_t l_4340 = 0xDA33A7219DE1BDE2LL;
            int i, j, k;
            (*l_4075) = func_22((((*p_13) == (((p_15 && (((**g_1546) = (l_4298 ^= (safe_sub_func_uint8_t_u_u((safe_mul_func_uint8_t_u_u((safe_add_func_int8_t_s_s(((safe_add_func_int64_t_s_s(((l_4136 |= (safe_mod_func_int8_t_s_s(l_4313, 0xDDL))) < l_4313), (((-3L) > ((safe_mod_func_int32_t_s_s((safe_rshift_func_uint32_t_u_u(((l_4318 == l_4320[2]) >= ((((((safe_unary_minus_func_uint32_t_u(p_17)) , p_15) , p_15) & 65535UL) ^ l_4313) , p_17)), p_15)), 0xC2C28517L)) || p_15)) || (*g_1973)))) < p_17), p_15)), 0xF6L)), 0x64L)))) , (*l_4012))) != p_17) || p_17)) , (**g_3404)));
            ++l_4332;
            ++l_4341;
        }
    }
    return p_17;
}


/* ------------------------------------------ */
/* 
 * reads : g_74
 * writes: g_75
 */
static int32_t * func_22(int16_t  p_23)
{ /* block id: 1417 */
    int32_t *l_3223 = &g_11;
    (*g_74) = l_3223;
    return l_3223;
}


/* ------------------------------------------ */
/* 
 * reads : g_11 g_1255 g_960
 * writes:
 */
static int64_t  func_27(int32_t * const * p_28, int32_t ** p_29)
{ /* block id: 1413 */
    int16_t l_3213[3][8] = {{0x766DL,0x766DL,0x766DL,0x766DL,0x766DL,0x766DL,0x766DL,0x766DL},{0x766DL,0x766DL,0x766DL,0x766DL,0x766DL,0x766DL,0x766DL,0x766DL},{0x766DL,0x766DL,0x766DL,0x766DL,0x766DL,0x766DL,0x766DL,0x766DL}};
    int32_t l_3216 = 0L;
    int32_t l_3221 = 0x7C4FD221L;
    int i, j;
    l_3221 &= ((safe_lshift_func_uint32_t_u_u(((safe_unary_minus_func_int8_t_s(l_3213[2][0])) & ((((safe_mul_func_int32_t_s_s((l_3216 ^= (**p_29)), l_3213[2][0])) >= ((safe_lshift_func_uint64_t_u_u(l_3213[1][2], 8)) , l_3213[2][3])) , (**p_29)) > l_3213[2][0])), (l_3213[0][6] == ((**p_29) >= (**p_29))))) | (*g_1255));
    return l_3221;
}


/* ------------------------------------------ */
/* 
 * reads :
 * writes: g_1833
 */
static int32_t * const * func_30(uint32_t  p_31, int32_t  p_32, uint32_t  p_33)
{ /* block id: 841 */
    int64_t ***l_1905 = &g_209;
    uint8_t l_1906 = 254UL;
    int32_t l_1939 = 0x3725F7EBL;
    uint32_t l_1946 = 0xC42C86C5L;
    uint8_t l_1950[7];
    int32_t l_2022 = 4L;
    int32_t l_2023 = 0x921593AFL;
    int32_t l_2024 = (-9L);
    int32_t l_2025 = 0x22AE5BC7L;
    int32_t l_2027 = (-10L);
    int32_t l_2030 = 0x161CBA96L;
    int32_t l_2031 = 1L;
    int32_t l_2032 = 0xB301EC6BL;
    int32_t l_2033 = 0x902AC058L;
    int32_t l_2035 = 0x419EACA3L;
    int32_t l_2036 = (-1L);
    int32_t l_2037 = 0xD6A00A56L;
    int32_t l_2038 = 0xEC5CB6E6L;
    int32_t l_2039[5][7][7] = {{{(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L)},{0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L},{(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L)},{0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L},{(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L)},{0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L},{(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L)}},{{0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L},{(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L)},{0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L},{(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L)},{0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L},{(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L)},{0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L}},{{(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L)},{0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L},{(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L)},{0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L},{(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L)},{0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L},{(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L)}},{{0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L},{(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L)},{0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L},{(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L)},{0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L},{(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L)},{0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L}},{{(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L)},{0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L},{(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L)},{0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L},{(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L)},{0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L,0xB4844EA6L},{(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L),0xE60C5C34L,(-1L)}}};
    uint32_t ***l_2124 = &g_1385;
    uint32_t **** const l_2123 = &l_2124;
    uint32_t **** const *l_2122 = &l_2123;
    int16_t l_2160 = 0L;
    uint32_t l_2164 = 4294967290UL;
    int32_t * const *l_2171 = &g_75[6][1];
    int32_t *l_2249 = &g_122;
    int32_t **l_2248 = &l_2249;
    uint32_t l_2273[5] = {4294967294UL,4294967294UL,4294967294UL,4294967294UL,4294967294UL};
    int32_t l_2306 = 0L;
    uint16_t l_2361 = 0x0D41L;
    uint8_t * const l_2389 = &g_2094;
    uint8_t * const *l_2388 = &l_2389;
    uint8_t * const **l_2387 = &l_2388;
    uint8_t * const ***l_2386 = &l_2387;
    uint8_t * const ****l_2385 = &l_2386;
    uint16_t *l_2405 = (void*)0;
    uint16_t **l_2404 = &l_2405;
    uint16_t ***l_2403 = &l_2404;
    uint32_t l_2406 = 0UL;
    uint32_t l_2407 = 0xBC8206E4L;
    int16_t l_2486 = 0x88B0L;
    uint64_t *l_2499 = (void*)0;
    int32_t l_2533 = 0x863BA7BFL;
    uint8_t l_2556 = 253UL;
    const int32_t ***l_2583 = (void*)0;
    const int32_t ****l_2582 = &l_2583;
    const int32_t *****l_2581 = &l_2582;
    uint64_t l_2612 = 0x2D7B55DFAFFE4F2BLL;
    int8_t **l_2658 = &g_1547[0];
    int8_t l_2718 = 1L;
    uint64_t **l_2762[3];
    uint32_t ** const *l_2789 = &g_2620;
    int8_t l_2838 = 0xF4L;
    int64_t l_2854 = 1L;
    const uint64_t ** const *l_2858 = &g_1266;
    const uint64_t ** const **l_2857 = &l_2858;
    uint8_t *l_2874[7] = {&l_1906,&l_1906,&l_1906,&l_1906,&l_1906,&l_1906,&l_1906};
    uint8_t **l_2873 = &l_2874[3];
    uint16_t ** const *l_2889 = (void*)0;
    uint16_t ** const **l_2888 = &l_2889;
    uint16_t ** const ***l_2887[10] = {&l_2888,&l_2888,&l_2888,&l_2888,&l_2888,&l_2888,&l_2888,&l_2888,&l_2888,&l_2888};
    const int16_t *l_2935 = &g_2936;
    const int16_t **l_2934[9][2] = {{&l_2935,&l_2935},{&l_2935,&l_2935},{&l_2935,&l_2935},{&l_2935,&l_2935},{&l_2935,&l_2935},{&l_2935,&l_2935},{&l_2935,&l_2935},{&l_2935,&l_2935},{&l_2935,&l_2935}};
    const int16_t ***l_2933[6];
    int8_t l_2966 = 0x25L;
    uint8_t l_3108[2];
    int64_t l_3195 = 0x8C752B56FD24FD5CLL;
    int i, j, k;
    for (i = 0; i < 7; i++)
        l_1950[i] = 0xB9L;
    for (i = 0; i < 3; i++)
        l_2762[i] = (void*)0;
    for (i = 0; i < 6; i++)
        l_2933[i] = &l_2934[0][1];
    for (i = 0; i < 2; i++)
        l_3108[i] = 253UL;
    g_1833 = l_1905;
    return l_2171;
}


/* ------------------------------------------ */
/* 
 * reads : g_185 g_11 g_789 g_74 g_75 g_1217 g_1218 g_1216 g_1254 g_184 g_1266 g_778 g_779 g_496 g_485 g_83 g_275 g_276 g_1255 g_1325 g_375 g_376 g_1267 g_111 g_1358 g_210 g_274 g_1533 g_1294 g_1546 g_1547 g_492 g_490 g_200 g_214 g_1527 g_960 g_486 g_1062 g_692 g_693 g_1324 g_1836 g_80 g_1608 g_1627 g_1878 g_820 g_1887 g_484
 * writes: g_222 g_789 g_184 g_111 g_83 g_11 g_1324 g_960 g_75 g_483 g_1350 g_200 g_276 g_1294 g_492 g_490 g_1527 g_486 g_1062 g_376 g_1833 g_1608 g_1000 g_1887 g_210
 */
static uint32_t  func_34(int32_t * const  p_35, uint32_t  p_36, const int32_t * p_37, int32_t  p_38)
{ /* block id: 71 */
    uint32_t *l_220 = &g_106;
    uint32_t **l_221[3][2] = {{&l_220,&l_220},{&l_220,&l_220},{&l_220,&l_220}};
    int32_t l_223 = 0x71C90CD1L;
    uint16_t *l_237 = (void*)0;
    int32_t l_279[7] = {0x4C4325F0L,0x4C4325F0L,0x4C4325F0L,0x4C4325F0L,0x4C4325F0L,0x4C4325F0L,0x4C4325F0L};
    int8_t l_302 = 0L;
    int32_t l_314 = 0x69061AFAL;
    int64_t **l_337[8];
    int64_t ***l_446 = &l_337[5];
    int64_t ****l_445 = &l_446;
    int64_t *****l_444 = &l_445;
    int32_t ***l_459 = &g_74;
    int16_t l_525 = (-7L);
    int32_t ****l_549 = &l_459;
    int32_t ****l_550 = &l_459;
    int64_t l_603[4][3][4] = {{{0xA5AEF1B67D03CA93LL,0x169A6EB74FCFE3E4LL,0xA5AEF1B67D03CA93LL,1L},{0x9B60C87BC3143491LL,0x169A6EB74FCFE3E4LL,(-1L),0x169A6EB74FCFE3E4LL},{0x9B60C87BC3143491LL,1L,0xA5AEF1B67D03CA93LL,0x169A6EB74FCFE3E4LL}},{{0xA5AEF1B67D03CA93LL,0x169A6EB74FCFE3E4LL,0xA5AEF1B67D03CA93LL,1L},{0x9B60C87BC3143491LL,0x169A6EB74FCFE3E4LL,(-1L),0x169A6EB74FCFE3E4LL},{0x9B60C87BC3143491LL,1L,0xA5AEF1B67D03CA93LL,0x169A6EB74FCFE3E4LL}},{{0xA5AEF1B67D03CA93LL,0x169A6EB74FCFE3E4LL,0xA5AEF1B67D03CA93LL,1L},{0x9B60C87BC3143491LL,0x169A6EB74FCFE3E4LL,(-1L),0x169A6EB74FCFE3E4LL},{0x9B60C87BC3143491LL,1L,0xA5AEF1B67D03CA93LL,0x169A6EB74FCFE3E4LL}},{{0xA5AEF1B67D03CA93LL,0x169A6EB74FCFE3E4LL,0xA5AEF1B67D03CA93LL,1L},{0x9B60C87BC3143491LL,0x169A6EB74FCFE3E4LL,(-1L),0x169A6EB74FCFE3E4LL},{0x9B60C87BC3143491LL,1L,0xA5AEF1B67D03CA93LL,0x169A6EB74FCFE3E4LL}}};
    uint64_t l_611 = 0UL;
    int8_t *l_701 = &l_302;
    int8_t **l_700 = &l_701;
    const uint32_t l_901 = 8UL;
    uint32_t l_962 = 0UL;
    uint16_t * const * const *l_993 = (void*)0;
    uint16_t * const * const ** const l_992 = &l_993;
    int32_t l_1115[5];
    const uint8_t ** const *l_1136 = (void*)0;
    uint64_t l_1238 = 0xBF1414B40365B14FLL;
    int16_t * const *l_1256 = (void*)0;
    uint64_t l_1310[4] = {0UL,0UL,0UL,0UL};
    int8_t l_1328[3];
    int32_t *l_1329 = &l_279[2];
    int32_t *l_1330[8] = {&g_11,(void*)0,&g_11,(void*)0,&g_11,(void*)0,&g_11,(void*)0};
    int8_t l_1331 = 0x5FL;
    uint32_t l_1332 = 4294967292UL;
    uint32_t * const **l_1349 = (void*)0;
    uint32_t * const ***l_1348[2];
    uint32_t * const ****l_1347[8];
    uint64_t *l_1443 = (void*)0;
    uint64_t **l_1442 = &l_1443;
    uint16_t l_1494 = 0x7824L;
    uint8_t l_1529 = 0xFBL;
    uint8_t l_1538[9][5][5] = {{{1UL,255UL,1UL,0x94L,1UL},{0UL,0UL,0UL,0UL,0x33L},{0x1DL,255UL,1UL,255UL,0x1DL},{0x33L,0UL,0UL,0UL,0UL},{1UL,0x94L,1UL,255UL,1UL}},{{0UL,0UL,251UL,0UL,0UL},{0xAAL,255UL,0xAAL,0x94L,0x1DL},{0UL,0x33L,0UL,0UL,0x33L},{1UL,0x94L,1UL,0x94L,1UL},{0xD3L,0UL,251UL,0xD3L,0x33L}},{{0xAAL,0x40L,1UL,0x94L,1UL},{0x33L,0x33L,0UL,0UL,0x33L},{1UL,0x94L,1UL,0x40L,1UL},{0x33L,251UL,251UL,0x33L,0xD3L},{0xAAL,0x94L,0x1DL,0x94L,0xAAL}},{{0xD3L,0x33L,251UL,251UL,0x33L},{1UL,0x40L,1UL,0x94L,1UL},{0x33L,0UL,0UL,0x33L,0x33L},{1UL,0x94L,1UL,0x40L,0xAAL},{0x33L,0xD3L,251UL,0UL,0xD3L}},{{1UL,0x94L,1UL,0x94L,1UL},{0xD3L,0UL,251UL,0xD3L,0x33L},{0xAAL,0x40L,1UL,0x94L,1UL},{0x33L,0x33L,0UL,0UL,0x33L},{1UL,0x94L,1UL,0x40L,1UL}},{{0x33L,251UL,251UL,0x33L,0xD3L},{0xAAL,0x94L,0x1DL,0x94L,0xAAL},{0xD3L,0x33L,251UL,251UL,0x33L},{1UL,0x40L,1UL,0x94L,1UL},{0x33L,0UL,0UL,0x33L,0x33L}},{{1UL,0x94L,1UL,0x40L,0xAAL},{0x33L,0xD3L,251UL,0UL,0xD3L},{1UL,0x94L,1UL,0x94L,1UL},{0xD3L,0UL,251UL,0xD3L,0x33L},{0xAAL,0x40L,1UL,0x94L,1UL}},{{0x33L,0x33L,0UL,0UL,0x33L},{1UL,0x94L,1UL,0x40L,1UL},{0x33L,251UL,251UL,0x33L,0xD3L},{0xAAL,0x94L,0x1DL,0x94L,0xAAL},{0xD3L,0x33L,251UL,251UL,0x33L}},{{1UL,0x40L,1UL,0x94L,1UL},{0x33L,0UL,0UL,0x33L,0x33L},{1UL,0x94L,1UL,0x40L,0xAAL},{0x33L,0xD3L,251UL,0UL,0xD3L},{1UL,0x94L,1UL,0x94L,1UL}}};
    uint32_t ***l_1593 = (void*)0;
    uint32_t ****l_1592 = &l_1593;
    int64_t l_1618[6][5] = {{(-1L),0xC1A8F42B95EB3AA4LL,(-1L),(-1L),0xC1A8F42B95EB3AA4LL},{8L,0x2A5059347BE57B92LL,0x7B8BFDA0C2B82D17LL,0x2A5059347BE57B92LL,0x7B8BFDA0C2B82D17LL},{(-1L),(-1L),0xC1A8F42B95EB3AA4LL,(-1L),(-1L)},{0x7B8BFDA0C2B82D17LL,0x2A5059347BE57B92LL,0x7B8BFDA0C2B82D17LL,(-1L),0L},{(-1L),(-5L),(-5L),(-1L),(-5L)},{0L,0x2A5059347BE57B92LL,8L,0x2A5059347BE57B92LL,0L}};
    uint32_t * const *l_1668[10] = {&g_482[2][9],&g_482[2][9],&g_482[2][9],&g_482[2][9],&g_482[2][9],&g_482[2][9],&g_482[2][9],&g_482[2][9],&g_482[2][9],&g_482[2][9]};
    uint64_t l_1725 = 18446744073709551615UL;
    uint32_t l_1834[10] = {0xA69B1467L,0xA69B1467L,0x5E6E5125L,0xA69B1467L,0xA69B1467L,0x5E6E5125L,0xA69B1467L,0xA69B1467L,0x5E6E5125L,0xA69B1467L};
    int i, j, k;
    for (i = 0; i < 8; i++)
        l_337[i] = &g_210;
    for (i = 0; i < 5; i++)
        l_1115[i] = 0x517B7892L;
    for (i = 0; i < 3; i++)
        l_1328[i] = 3L;
    for (i = 0; i < 2; i++)
        l_1348[i] = &l_1349;
    for (i = 0; i < 8; i++)
        l_1347[i] = &l_1348[0];
    if ((safe_mul_func_int16_t_s_s((l_223 = (g_185 && (g_11 | ((g_222 = l_220) != &p_36)))), (-7L))))
    { /* block id: 74 */
        uint32_t *l_228 = &g_83;
        uint8_t *l_232 = &g_214;
        uint8_t **l_231[8] = {&l_232,&l_232,&l_232,&l_232,&l_232,&l_232,&l_232,&l_232};
        int16_t l_233[1];
        int64_t **l_243 = &g_210;
        int64_t ***l_248 = &l_243;
        uint8_t *l_270 = (void*)0;
        int32_t l_272 = 0L;
        int32_t l_280 = 0x97B1DD45L;
        int32_t l_301 = 1L;
        int32_t l_303 = 0x749569CBL;
        int32_t l_312[7][7][5] = {{{0L,0L,0L,1L,0x8A3F9A0CL},{0L,0x8A3F9A0CL,0xC85BA2E1L,0x5F37A506L,1L},{1L,0L,0x5F37A506L,0L,1L},{(-1L),0x8A3F9A0CL,0x8EC1A41EL,0x907783B1L,2L},{1L,0L,0x8DD452F0L,1L,1L},{0x4991BE6CL,1L,0L,2L,1L},{0x4991BE6CL,(-1L),0xA4BECD20L,(-1L),0x4991BE6CL}},{{1L,0x907783B1L,0xC85BA2E1L,1L,0L},{(-1L),4L,1L,(-3L),4L},{1L,(-1L),0xFCCB7063L,0x907783B1L,0L},{0L,(-3L),0x6F301E01L,(-1L),0x4991BE6CL},{0L,0x8DD452F0L,1L,1L,1L},{(-1L),0x8A3F9A0CL,0x1238A77FL,1L,1L},{0x5F37A506L,0L,0x5F37A506L,(-1L),2L}},{{(-1L),1L,0L,0x907783B1L,1L},{(-3L),0L,0x570B0D9EL,(-3L),1L},{0x6F301E01L,(-3L),0L,1L,0x8A3F9A0CL},{0x4991BE6CL,0L,0x5F37A506L,(-1L),0x6F301E01L},{(-3L),0x907783B1L,0x1238A77FL,2L,0L},{0xC85BA2E1L,0x907783B1L,1L,1L,0x907783B1L},{1L,0L,0x6F301E01L,0x907783B1L,0x8DD452F0L}},{{(-1L),(-3L),0xFCCB7063L,0L,0x4991BE6CL},{0x8DD452F0L,0L,1L,0x5F37A506L,0x8A3F9A0CL},{(-1L),1L,0xC85BA2E1L,1L,0x5F37A506L},{1L,0L,0xA4BECD20L,0L,2L},{0xC85BA2E1L,0x8A3F9A0CL,0L,4L,2L},{(-3L),0x8DD452F0L,0x8DD452F0L,(-3L),0x5F37A506L},{0x4991BE6CL,(-3L),0x8EC1A41EL,2L,0x6F301E01L}},{{0x1238A77FL,0L,(-1L),(-1L),0xC85BA2E1L},{0x8DD452F0L,0L,0xA4BECD20L,1L,0x13099A9AL},{0x5F37A506L,1L,0L,0x8DD452F0L,1L},{(-1L),0L,0x1238A77FL,0L,(-1L)},{0L,0x570B0D9EL,0x1238A77FL,0L,0x1238A77FL},{(-1L),(-1L),0L,4L,0x6F301E01L},{(-1L),0x6F301E01L,0xA4BECD20L,(-1L),4L}},{{4L,0L,(-1L),0L,(-1L)},{0x5F37A506L,0x6F301E01L,0L,1L,1L},{0x570B0D9EL,(-1L),0x13099A9AL,0x570B0D9EL,4L},{0xC85BA2E1L,0x570B0D9EL,(-1L),1L,0xFCCB7063L},{0xC85BA2E1L,0L,0x907783B1L,0L,0xC85BA2E1L},{0x570B0D9EL,1L,0xA4BECD20L,(-1L),(-1L)},{0x5F37A506L,0L,0x570B0D9EL,0x8DD452F0L,0L}},{{4L,0L,(-1L),1L,(-1L)},{(-1L),0x8DD452F0L,0x1238A77FL,0x8EC1A41EL,0xC85BA2E1L},{(-1L),0x13099A9AL,0x570B0D9EL,4L,0xFCCB7063L},{0L,0x6F301E01L,1L,4L,4L},{(-1L),1L,(-1L),0x8EC1A41EL,1L},{0x5F37A506L,0xFCCB7063L,(-1L),1L,(-1L)},{0x8DD452F0L,(-1L),0L,0x8DD452F0L,4L}}};
        uint32_t l_402 = 0UL;
        const uint32_t *l_404 = (void*)0;
        const uint32_t ** const l_403 = &l_404;
        volatile uint16_t * volatile **l_415[5][9][3] = {{{(void*)0,(void*)0,&g_362},{(void*)0,&g_362,&g_362},{&g_362,&g_362,&g_362},{&g_362,(void*)0,&g_362},{&g_362,&g_362,&g_362},{&g_362,&g_362,&g_362},{&g_362,&g_362,(void*)0},{&g_362,&g_362,&g_362},{(void*)0,&g_362,&g_362}},{{&g_362,&g_362,&g_362},{(void*)0,&g_362,&g_362},{&g_362,&g_362,&g_362},{&g_362,(void*)0,&g_362},{&g_362,&g_362,&g_362},{&g_362,&g_362,&g_362},{&g_362,(void*)0,&g_362},{(void*)0,&g_362,(void*)0},{&g_362,&g_362,&g_362}},{{(void*)0,&g_362,&g_362},{&g_362,(void*)0,(void*)0},{&g_362,&g_362,&g_362},{&g_362,&g_362,&g_362},{&g_362,&g_362,&g_362},{&g_362,&g_362,&g_362},{&g_362,&g_362,&g_362},{(void*)0,&g_362,&g_362},{(void*)0,&g_362,&g_362}},{{&g_362,(void*)0,&g_362},{(void*)0,(void*)0,&g_362},{&g_362,&g_362,&g_362},{(void*)0,(void*)0,&g_362},{&g_362,&g_362,&g_362},{&g_362,(void*)0,&g_362},{&g_362,&g_362,&g_362},{&g_362,&g_362,&g_362},{&g_362,&g_362,&g_362}},{{&g_362,(void*)0,&g_362},{&g_362,&g_362,&g_362},{(void*)0,&g_362,&g_362},{&g_362,&g_362,&g_362},{&g_362,&g_362,&g_362},{&g_362,(void*)0,&g_362},{&g_362,&g_362,(void*)0},{&g_362,&g_362,(void*)0},{&g_362,&g_362,&g_362}}};
        uint32_t **l_501 = &l_220;
        int64_t l_535[2][8][1] = {{{(-4L)},{0xD6764571DB442E64LL},{0xD6764571DB442E64LL},{(-4L)},{0xD6764571DB442E64LL},{0xD6764571DB442E64LL},{(-4L)},{0xD6764571DB442E64LL}},{{0xD6764571DB442E64LL},{(-4L)},{0xD6764571DB442E64LL},{0xD6764571DB442E64LL},{(-4L)},{0xD6764571DB442E64LL},{0xD6764571DB442E64LL},{(-4L)}}};
        uint32_t l_536 = 1UL;
        int8_t *l_579 = &l_302;
        uint16_t *l_580 = &g_196;
        uint8_t l_623 = 0xD9L;
        uint16_t l_635 = 0UL;
        const uint16_t **l_711 = &g_710[2][0];
        int64_t ****l_732 = &l_248;
        uint64_t *l_762 = &g_111;
        const uint8_t *l_883 = &g_214;
        const uint8_t **l_882 = &l_883;
        const uint8_t ***l_881[7][6] = {{&l_882,&l_882,&l_882,&l_882,&l_882,&l_882},{&l_882,&l_882,&l_882,&l_882,&l_882,&l_882},{&l_882,&l_882,&l_882,&l_882,&l_882,&l_882},{&l_882,&l_882,&l_882,&l_882,&l_882,&l_882},{&l_882,&l_882,&l_882,&l_882,&l_882,&l_882},{&l_882,&l_882,&l_882,&l_882,&l_882,&l_882},{&l_882,&l_882,&l_882,&l_882,&l_882,&l_882}};
        const uint8_t ****l_880 = &l_881[0][2];
        uint32_t l_899 = 0x72B97E77L;
        uint16_t l_900 = 0x5D0CL;
        uint32_t l_965 = 0xFEAC25C4L;
        const int32_t *l_1009[8][4] = {{&l_301,&l_272,&g_820[1][0],&l_272},{&l_272,&l_301,&l_223,&l_223},{&l_279[5],&l_301,&g_11,&l_223},{&l_279[2],&g_820[2][0],(void*)0,&l_272},{&l_279[2],&g_11,&g_11,&l_279[2]},{&l_279[5],&l_272,&l_223,&g_11},{&l_272,&g_820[2][0],&g_820[1][0],&l_223},{&l_301,&l_279[5],&g_11,&l_223}};
        const int32_t **l_1008[6] = {&l_1009[4][2],&l_1009[4][2],&l_1009[4][2],&l_1009[4][2],&l_1009[4][2],&l_1009[4][2]};
        const int32_t ***l_1007[1];
        const int32_t ****l_1006 = &l_1007[0];
        uint32_t ***l_1018 = &l_221[1][1];
        uint32_t *** const *l_1017[1][5] = {{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0}};
        int i, j, k;
        for (i = 0; i < 1; i++)
            l_233[i] = (-8L);
        for (i = 0; i < 1; i++)
            l_1007[i] = &l_1008[0];
    }
    else
    { /* block id: 417 */
        uint8_t l_1060 = 0xE3L;
        int32_t l_1102 = 0xFBF3526AL;
        int32_t *l_1103 = &l_279[2];
        int32_t l_1111 = (-7L);
        int32_t l_1112 = 1L;
        int32_t l_1113 = 3L;
        int32_t l_1114[5][8] = {{0L,0L,0L,0L,0L,0L,0L,0L},{0L,0L,0L,0L,0L,0L,0L,0L},{0L,0L,0L,0L,0L,0L,0L,0L},{0L,0L,0L,0L,0L,0L,0L,0L},{0L,0L,0L,0L,0L,0L,0L,0L}};
        uint8_t l_1116 = 0x0EL;
        uint32_t l_1126 = 0UL;
        uint8_t *l_1152 = &l_1060;
        uint8_t ** const l_1151 = &l_1152;
        uint8_t ** const *l_1150 = &l_1151;
        uint8_t ** const **l_1149 = &l_1150;
        const int16_t **l_1219 = (void*)0;
        const uint16_t ***l_1283 = &g_709;
        uint32_t l_1296 = 0xBD80247EL;
        uint32_t * const **l_1309 = &g_481;
        int i, j;
        for (l_302 = 0; (l_302 < (-22)); l_302--)
        { /* block id: 420 */
            uint8_t l_1040 = 0x60L;
            int32_t l_1061 = (-1L);
            uint32_t *l_1077 = &g_83;
            int64_t *l_1078 = (void*)0;
            uint32_t *l_1079 = &l_962;
            const uint16_t l_1092 = 0xCFD2L;
            int32_t l_1104 = 0x774197DCL;
            int32_t l_1109 = 0L;
            int32_t l_1110[2][8] = {{4L,0xA4C3B398L,7L,0x7A582DA4L,0x7A582DA4L,7L,0xA4C3B398L,4L},{0xA4C3B398L,2L,4L,(-1L),4L,2L,0xA4C3B398L,0xA4C3B398L}};
            int16_t *l_1120[2][8] = {{&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185,&g_185},{&g_960,&g_185,&g_960,&g_960,&g_185,&g_960,&g_960,&g_185}};
            int16_t **l_1119[1];
            const uint8_t ** const l_1135[1] = {(void*)0};
            const uint8_t ** const *l_1134[6][6][7] = {{{(void*)0,&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],(void*)0,&l_1135[0]},{&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],(void*)0,&l_1135[0],&l_1135[0]},{&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],(void*)0,&l_1135[0]},{&l_1135[0],(void*)0,&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0]},{(void*)0,&l_1135[0],&l_1135[0],(void*)0,&l_1135[0],&l_1135[0],&l_1135[0]},{&l_1135[0],&l_1135[0],&l_1135[0],(void*)0,&l_1135[0],(void*)0,&l_1135[0]}},{{&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],(void*)0},{(void*)0,&l_1135[0],&l_1135[0],&l_1135[0],(void*)0,&l_1135[0],&l_1135[0]},{(void*)0,&l_1135[0],(void*)0,&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0]},{&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0]},{&l_1135[0],&l_1135[0],&l_1135[0],(void*)0,&l_1135[0],&l_1135[0],(void*)0},{&l_1135[0],&l_1135[0],&l_1135[0],(void*)0,&l_1135[0],&l_1135[0],&l_1135[0]}},{{&l_1135[0],&l_1135[0],(void*)0,&l_1135[0],&l_1135[0],&l_1135[0],(void*)0},{&l_1135[0],(void*)0,&l_1135[0],&l_1135[0],(void*)0,&l_1135[0],&l_1135[0]},{&l_1135[0],&l_1135[0],(void*)0,&l_1135[0],&l_1135[0],&l_1135[0],(void*)0},{&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],(void*)0},{&l_1135[0],&l_1135[0],&l_1135[0],(void*)0,&l_1135[0],&l_1135[0],&l_1135[0]},{&l_1135[0],&l_1135[0],(void*)0,(void*)0,&l_1135[0],&l_1135[0],(void*)0}},{{&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],(void*)0},{(void*)0,&l_1135[0],&l_1135[0],&l_1135[0],(void*)0,&l_1135[0],&l_1135[0]},{&l_1135[0],(void*)0,&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0]},{&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0]},{&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],(void*)0,&l_1135[0]},{(void*)0,&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0]}},{{(void*)0,&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],(void*)0,&l_1135[0]},{&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0]},{&l_1135[0],&l_1135[0],(void*)0,&l_1135[0],(void*)0,&l_1135[0],&l_1135[0]},{(void*)0,&l_1135[0],&l_1135[0],(void*)0,(void*)0,&l_1135[0],&l_1135[0]},{(void*)0,&l_1135[0],(void*)0,&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0]},{(void*)0,&l_1135[0],(void*)0,&l_1135[0],(void*)0,&l_1135[0],(void*)0}},{{&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0]},{&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0]},{&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0]},{&l_1135[0],&l_1135[0],(void*)0,(void*)0,&l_1135[0],(void*)0,&l_1135[0]},{&l_1135[0],&l_1135[0],(void*)0,&l_1135[0],(void*)0,&l_1135[0],&l_1135[0]},{&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],&l_1135[0],(void*)0,&l_1135[0]}}};
            int64_t **** const *l_1182 = &l_445;
            int i, j, k;
            for (i = 0; i < 1; i++)
                l_1119[i] = &l_1120[1][1];
            ++l_1040;
        }
        for (g_789 = 0; (g_789 > 15); ++g_789)
        { /* block id: 506 */
            int16_t l_1251 = 5L;
            uint16_t l_1279 = 1UL;
            int32_t l_1286 = 0xDAE1B888L;
            uint16_t l_1300[4] = {65527UL,65527UL,65527UL,65527UL};
            uint32_t ***l_1308 = &l_221[2][1];
            int i;
            if ((safe_unary_minus_func_uint8_t_u((((p_36 , p_35) != (void*)0) < ((((safe_sub_func_int8_t_s_s((safe_add_func_uint64_t_u_u((safe_mod_func_uint8_t_u_u(0xEEL, (safe_rshift_func_uint32_t_u_u(l_1251, (p_36 ^ ((****l_550) , ((((((*g_1217) ^ (p_38 == 2UL)) , &l_525) != (*g_1216)) , g_1254) != l_1256))))))), l_1251)), p_38)) , l_1152) != l_1152) > 0UL)))))
            { /* block id: 507 */
                uint64_t *l_1269 = &g_111;
                uint64_t * const * const l_1268 = &l_1269;
                int32_t l_1274 = 7L;
                uint32_t l_1280 = 0xDE8CFBA0L;
                const uint16_t ***l_1282 = &g_709;
                const uint16_t ****l_1281[9][3][5] = {{{&l_1282,&l_1282,&l_1282,&l_1282,&l_1282},{&l_1282,&l_1282,&l_1282,&l_1282,(void*)0},{&l_1282,&l_1282,(void*)0,&l_1282,(void*)0}},{{(void*)0,(void*)0,&l_1282,&l_1282,&l_1282},{&l_1282,&l_1282,&l_1282,&l_1282,&l_1282},{&l_1282,(void*)0,&l_1282,&l_1282,&l_1282}},{{&l_1282,&l_1282,&l_1282,&l_1282,(void*)0},{&l_1282,(void*)0,(void*)0,&l_1282,&l_1282},{(void*)0,&l_1282,&l_1282,(void*)0,&l_1282}},{{&l_1282,&l_1282,&l_1282,&l_1282,&l_1282},{&l_1282,&l_1282,&l_1282,(void*)0,(void*)0},{(void*)0,&l_1282,&l_1282,&l_1282,&l_1282}},{{&l_1282,&l_1282,(void*)0,&l_1282,(void*)0},{&l_1282,&l_1282,&l_1282,&l_1282,&l_1282},{(void*)0,(void*)0,&l_1282,&l_1282,&l_1282}},{{&l_1282,&l_1282,(void*)0,&l_1282,&l_1282},{&l_1282,&l_1282,&l_1282,&l_1282,(void*)0},{(void*)0,&l_1282,&l_1282,&l_1282,&l_1282}},{{&l_1282,&l_1282,&l_1282,(void*)0,&l_1282},{(void*)0,(void*)0,(void*)0,&l_1282,&l_1282},{&l_1282,&l_1282,&l_1282,&l_1282,&l_1282}},{{(void*)0,&l_1282,&l_1282,&l_1282,&l_1282},{&l_1282,&l_1282,(void*)0,(void*)0,&l_1282},{&l_1282,(void*)0,(void*)0,&l_1282,&l_1282}},{{&l_1282,(void*)0,&l_1282,&l_1282,&l_1282},{&l_1282,&l_1282,(void*)0,&l_1282,&l_1282},{&l_1282,(void*)0,&l_1282,&l_1282,&l_1282}}};
                int32_t *l_1299[1];
                int i, j, k;
                for (i = 0; i < 1; i++)
                    l_1299[i] = &l_279[6];
                l_1283 = (((safe_div_func_int32_t_s_s((safe_unary_minus_func_uint32_t_u((((0L > ((*l_701) |= (g_184 ^= (****l_549)))) , p_38) > (safe_sub_func_int32_t_s_s((safe_div_func_int32_t_s_s((((((safe_div_func_uint32_t_u_u((g_1266 == l_1268), ((safe_lshift_func_uint64_t_u_s((0xDC5DL > ((safe_mul_func_int64_t_s_s(l_1274, ((**l_1268) = ((safe_mul_func_uint8_t_u_u(((0x0674L >= (safe_mod_func_int8_t_s_s(((***l_459) || (*g_778)), (***l_459)))) , l_1279), l_1280)) == 0x9CL)))) , p_36)), 24)) ^ g_496))) ^ 0x77C3EE169147D51CLL) < p_38) <= g_485) & 1L), (*p_37))), l_1251))))), 0xEB9BC62AL)) | p_36) , &g_709);
                for (l_1116 = 0; (l_1116 <= 2); l_1116 += 1)
                { /* block id: 514 */
                    const int32_t *l_1285 = &l_1274;
                    const int32_t **l_1284 = &l_1285;
                    int32_t l_1290 = 0xE15CAEB3L;
                    uint32_t l_1291 = 4294967295UL;
                    int32_t l_1295 = 0x84B463C5L;
                    (*l_1284) = p_37;
                    for (g_83 = 0; (g_83 <= 2); g_83 += 1)
                    { /* block id: 518 */
                        int32_t *l_1287 = &g_274;
                        int32_t *l_1288 = (void*)0;
                        int32_t *l_1289[5][6][8] = {{{&l_279[4],&l_279[0],&l_223,&l_1114[0][6],&l_1114[0][6],&l_223,&l_279[0],&l_279[4]},{&l_1102,&l_1274,&l_279[4],&l_279[2],(void*)0,&l_279[0],&l_1114[4][6],&l_1274},{&l_1111,&l_1114[2][6],(void*)0,&l_279[4],&l_279[2],&l_279[0],&l_279[4],(void*)0},{&l_1114[0][6],&l_1274,&l_279[2],&l_279[0],&l_1111,&l_223,&l_1111,&l_279[0]},{(void*)0,&l_279[0],(void*)0,&l_1114[2][7],(void*)0,&l_279[4],&l_1114[4][6],(void*)0},{(void*)0,&l_1114[4][6],&l_1114[2][6],(void*)0,&l_1114[2][7],(void*)0,(void*)0,(void*)0}},{{(void*)0,&l_279[4],&l_223,(void*)0,(void*)0,&l_279[2],(void*)0,(void*)0},{(void*)0,&l_1111,&l_279[2],&l_279[2],&l_1111,(void*)0,&l_1114[2][6],(void*)0},{&l_1114[0][6],&l_1114[4][6],&l_1114[2][7],&l_1274,&l_279[2],&l_1114[2][6],&l_1114[0][6],&l_1102},{&l_1111,(void*)0,&l_223,&l_1274,(void*)0,&l_223,(void*)0,(void*)0},{&l_1102,(void*)0,&l_1114[4][6],&l_279[2],&l_1114[0][6],&l_279[2],&l_1114[4][6],(void*)0},{&l_279[4],&l_1114[2][6],&l_1102,(void*)0,&l_279[2],&l_1114[2][7],(void*)0,(void*)0}},{{&l_1274,&l_1114[0][6],&l_279[2],(void*)0,&l_279[4],&l_223,(void*)0,(void*)0},{(void*)0,(void*)0,&l_1102,&l_1114[2][7],&l_279[0],&l_1114[4][6],&l_1114[4][6],&l_279[0]},{&l_279[0],&l_1114[4][6],&l_1114[4][6],&l_279[0],&l_1114[2][7],&l_1102,(void*)0,(void*)0},{(void*)0,(void*)0,&l_223,&l_279[4],(void*)0,&l_279[2],&l_1114[0][6],&l_1274},{(void*)0,(void*)0,&l_1114[2][7],&l_279[2],(void*)0,&l_1102,&l_1114[2][6],&l_279[4]},{(void*)0,&l_1114[4][6],&l_279[2],&l_1114[0][6],&l_279[2],&l_1114[4][6],(void*)0,&l_1102}},{{(void*)0,(void*)0,&l_223,(void*)0,(void*)0,&l_1274,&l_1114[4][6],&l_279[0]},{&l_1102,&l_1102,&l_223,&l_1274,(void*)0,(void*)0,(void*)0,&l_1102},{&l_1114[2][7],&l_223,&l_1111,&l_279[0],&l_1274,&l_1274,&l_279[0],&l_1111},{(void*)0,(void*)0,&l_1114[0][6],&l_1114[4][6],&l_1114[2][7],&l_1274,&l_279[2],&l_1114[2][6]},{&l_1111,&l_1114[4][6],&g_820[8][0],(void*)0,&l_1114[2][6],&l_223,(void*)0,&l_1114[2][6]},{&l_1114[4][6],(void*)0,&l_279[2],&l_1114[4][6],(void*)0,&l_1111,&l_279[4],&l_1111}},{{&l_279[4],&l_279[0],&l_1274,&l_279[0],&l_279[4],&l_1114[0][6],(void*)0,&l_1102},{&l_1111,&l_279[2],&g_820[3][0],&l_1274,&l_279[2],&g_820[8][0],&l_223,&l_279[0]},{(void*)0,(void*)0,&g_820[3][0],(void*)0,&l_1274,&l_279[2],(void*)0,&l_1102},{&l_279[2],&l_279[4],&l_1274,&l_1102,&l_1102,&l_1274,&l_279[4],&l_279[2]},{&l_1102,(void*)0,&l_279[2],&l_1274,(void*)0,&g_820[3][0],(void*)0,(void*)0},{&l_279[0],&l_223,&g_820[8][0],&l_279[2],&l_1274,&g_820[3][0],&l_279[2],&l_1111}}};
                        int i, j, k;
                        l_1291--;
                        l_1296--;
                    }
                }
                --l_1300[3];
                if (l_1286)
                    continue;
            }
            else
            { /* block id: 525 */
                uint64_t *l_1322 = (void*)0;
                uint64_t *l_1323 = (void*)0;
                int32_t l_1326[8] = {(-1L),0x4778DDC8L,(-1L),0x4778DDC8L,(-1L),0x4778DDC8L,(-1L),0x4778DDC8L};
                int32_t **l_1327 = &g_75[6][1];
                int i;
                (*l_1103) |= ((!(safe_add_func_int64_t_s_s(p_36, (((--(*l_1152)) >= ((((g_111 = (l_1308 == l_1309)) != (((l_1310[0] > (safe_rshift_func_uint32_t_u_s((((((safe_lshift_func_uint64_t_u_s((safe_rshift_func_int64_t_s_u(0x3EB7D93EEE790A54LL, 17)), (((**g_1254) = (((g_1324 = (l_1286 |= (safe_lshift_func_uint32_t_u_s((safe_rshift_func_uint16_t_u_u(((4294967295UL >= 0x05AC6DF9L) , (((~(((*g_275) , ((****l_550) = (*p_35))) == 0xF99EC221L)) | 65535UL) & l_1251)), 9)), p_38)))) >= p_36) <= p_38)) != 0x8DDFL))) == g_1325[0][1]) < (*g_375)) & 3UL) || p_38), 23))) <= 0UL) && (****l_549))) || p_38) & l_1279)) > 8UL)))) , l_1326[3]);
                (*l_1327) = p_35;
            }
            if ((*p_35))
                break;
            if ((*p_35))
                continue;
        }
    }
    l_1332++;
lbl_1803:
    for (g_83 = 0; (g_83 >= 59); g_83++)
    { /* block id: 542 */
        uint32_t l_1337 = 0xD6796ABDL;
        int32_t l_1356 = 3L;
        int32_t l_1396 = 2L;
        int32_t l_1398[5] = {1L,1L,1L,1L,1L};
        uint32_t l_1404 = 0x4B81771BL;
        int16_t *l_1459 = (void*)0;
        int16_t **l_1458 = &l_1459;
        int16_t ***l_1457[10] = {(void*)0,&l_1458,&l_1458,(void*)0,&l_1458,&l_1458,(void*)0,&l_1458,&l_1458,(void*)0};
        int8_t **l_1524 = (void*)0;
        int i;
        if (l_1337)
            break;
        for (g_483 = (-10); (g_483 < 26); g_483 = safe_add_func_uint32_t_u_u(g_483, 4))
        { /* block id: 546 */
            int32_t l_1357 = 4L;
            uint16_t **l_1369 = &l_237;
            uint32_t l_1378 = 4294967295UL;
            int32_t l_1400 = 0x094F598BL;
            uint64_t l_1418 = 0xCF9BD38D7AFA4E78LL;
            int32_t *** const *l_1490 = &l_459;
            uint8_t *l_1493 = &g_214;
            uint16_t l_1510 = 65526UL;
            int8_t ***l_1522 = (void*)0;
            int8_t ***l_1523[7][3] = {{&g_1521,(void*)0,&l_700},{(void*)0,&g_1521,&g_1521},{&l_700,&g_1521,(void*)0},{&g_1521,(void*)0,&l_700},{&l_700,&l_700,&l_700},{(void*)0,&g_1521,(void*)0},{&g_1521,&l_700,&g_1521}};
            uint32_t l_1526 = 0x45D448C2L;
            int i, j;
            (*g_275) = (safe_div_func_int8_t_s_s((+(safe_rshift_func_int16_t_s_s(p_36, 7))), (safe_mod_func_int64_t_s_s(7L, ((*****l_444) = (((**g_1266) != (g_376[0][6] <= ((l_1347[4] = l_1347[5]) == (g_1350[5][1] = &l_1348[0])))) | ((((*l_1329) = (*p_37)) , ((p_36 || (safe_lshift_func_uint32_t_u_s((((safe_mod_func_int32_t_s_s((l_1356 = ((*p_35) = (p_38 <= 0xF7458811L))), l_1357)) >= l_1357) , l_1356), l_1337))) || g_1358)) || 0x238F1B06L)))))));
        }
        ++l_1529;
    }
    if (((****l_549) &= (safe_unary_minus_func_int64_t_s(((g_274 , (void*)0) != g_1533)))))
    { /* block id: 638 */
        int32_t l_1536[9][4] = {{0L,0L,0L,0L},{0L,0L,0L,0L},{0L,0L,0L,0L},{0L,0L,0L,0L},{0L,0L,0L,0L},{0L,0L,0L,0L},{0L,0L,0L,0L},{0L,0L,0L,0L},{0L,0L,0L,0L}};
        int32_t l_1537 = 0x03E5498DL;
        int32_t l_1575 = 5L;
        int32_t ****l_1606 = &l_459;
        int16_t l_1609[2][3][7] = {{{0x9C9DL,0x17E1L,0x9C9DL,0x6E26L,0x6E26L,0x9C9DL,0x17E1L},{0x72E0L,0L,(-1L),(-1L),0L,0x72E0L,0L},{0x9C9DL,0x6E26L,0x6E26L,0x9C9DL,1L,(-1L),0x9C9DL}},{{0x72E0L,0x72E0L,0x9564L,0L,0x9564L,0x72E0L,0x72E0L},{0x6E26L,0x9C9DL,0x17E1L,0x9C9DL,0x6E26L,0x6E26L,0x9C9DL},{(-1L),(-6L),(-1L),0x9564L,0x9564L,(-1L),(-6L)}}};
        uint32_t ** const l_1651 = (void*)0;
        int32_t l_1697 = 0xCDEB2915L;
        int32_t l_1699 = 0L;
        int32_t l_1702 = 0x7BD9DBDCL;
        int32_t l_1704 = 0x67FF14ACL;
        int32_t l_1705[4][4][8] = {{{0xA580102FL,(-1L),0xA580102FL,4L,1L,4L,0xA580102FL,(-1L)},{1L,4L,0xA580102FL,(-1L),0xA580102FL,4L,1L,4L},{1L,(-1L),(-1L),(-1L),1L,0L,1L,(-1L)},{0xA580102FL,(-1L),0xA580102FL,4L,1L,4L,0xA580102FL,(-1L)}},{{1L,4L,0xA580102FL,(-1L),0xA580102FL,4L,1L,4L},{1L,(-1L),(-1L),(-1L),1L,0L,1L,(-1L)},{0xA580102FL,(-1L),0xA580102FL,4L,1L,4L,0xA580102FL,(-1L)},{1L,4L,0xA580102FL,(-1L),0xA580102FL,4L,1L,4L}},{{1L,(-1L),(-1L),(-1L),1L,0L,1L,(-1L)},{0xA580102FL,(-1L),0xA580102FL,4L,1L,4L,0xA580102FL,(-1L)},{1L,4L,0xA580102FL,(-1L),0xA580102FL,4L,1L,4L},{1L,(-1L),(-1L),(-1L),1L,0L,1L,(-1L)}},{{0xA580102FL,(-1L),0xA580102FL,4L,1L,4L,0xA580102FL,(-1L)},{1L,4L,0xA580102FL,(-1L),0xA580102FL,4L,1L,4L},{1L,(-1L),(-1L),(-1L),1L,0L,1L,(-1L)},{0xA580102FL,(-1L),0xA580102FL,4L,1L,4L,0xA580102FL,(-1L)}}};
        int32_t l_1715 = 0xC62B9ACDL;
        int i, j, k;
        for (g_1294 = 2; (g_1294 >= 0); g_1294 -= 1)
        { /* block id: 641 */
            int8_t l_1535[8] = {0x7CL,0x7CL,0x7CL,0x7CL,0x7CL,0x7CL,0x7CL,0x7CL};
            int8_t *l_1544 = &l_1535[6];
            int8_t ** const l_1543 = &l_1544;
            int8_t ** const *l_1542 = &l_1543;
            int8_t ** const **l_1541[2][2] = {{(void*)0,(void*)0},{(void*)0,(void*)0}};
            int16_t *l_1554[7] = {&g_185,&g_960,&g_960,&g_185,&g_960,&g_960,&g_185};
            int32_t l_1555 = 0xAC1E1BAFL;
            uint32_t *l_1558 = &l_962;
            uint16_t *l_1567 = &g_196;
            int32_t l_1568 = 0x81E87402L;
            const uint16_t l_1621 = 65526UL;
            uint32_t **l_1650 = &g_222;
            int32_t l_1709 = 0L;
            int32_t l_1710 = (-2L);
            int32_t l_1713 = 2L;
            int32_t l_1721 = (-1L);
            int32_t l_1723 = 0xFC4035F5L;
            int i, j;
            l_1538[1][3][2]--;
        }
    }
    else
    { /* block id: 747 */
        const int16_t l_1753 = 0x5388L;
        int32_t l_1771 = (-7L);
        int64_t ****l_1776 = &l_446;
        int32_t l_1821 = 1L;
        int32_t *l_1824[6] = {&g_274,&g_1294,&g_274,&g_274,&g_1294,&g_274};
        int16_t l_1862[3][1][4] = {{{1L,1L,1L,1L}},{{1L,1L,1L,1L}},{{1L,1L,1L,1L}}};
        uint16_t * const * const **l_1886 = &l_993;
        uint16_t * const * const ***l_1885 = &l_1886;
        int64_t *l_1903 = &l_603[2][0][0];
        int i, j, k;
        for (l_962 = 0; (l_962 <= 4); l_962 += 1)
        { /* block id: 750 */
            int32_t l_1752 = 0xB4718D18L;
            int i;
            (*p_35) = (((p_36 , (***l_549)) == (l_1330[l_962] = (***l_550))) != (safe_div_func_int8_t_s_s(((**g_1546) ^= ((((((****l_549) != (((*l_1329) = (*p_35)) || (0x361D10DBA7127844LL || (+((void*)0 != &g_709))))) && l_1752) >= p_36) || p_36) & 0x8220C28EL)), l_1753)));
            for (g_492 = 0; (g_492 <= 7); g_492 += 1)
            { /* block id: 757 */
                return p_38;
            }
        }
        (***l_549) = (*g_74);
        if (((void*)0 == &g_173))
        { /* block id: 762 */
            uint32_t l_1760 = 4294967292UL;
            int64_t ****l_1775 = (void*)0;
            int32_t l_1796[5][4] = {{0x3ACC7014L,0L,0x8B1F01AEL,0L},{(-1L),0L,0x95CC4E0DL,0x3ACC7014L},{0L,0x91133312L,0x91133312L,0L},{0x8B1F01AEL,0x3ACC7014L,0x91133312L,0L},{0L,(-1L),0x95CC4E0DL,(-1L)}};
            uint64_t l_1798[1][2][1];
            uint32_t *l_1817[2];
            int32_t l_1818[6][10][4] = {{{1L,0xDCFC2293L,(-10L),7L},{0xD20E8D5FL,(-1L),1L,0xEE642BFCL},{0xD2BAA007L,0x011858B6L,0L,0x39500430L},{0x949120BAL,1L,0xE1D9A786L,0xD2BAA007L},{0xAFA4E4D9L,(-7L),0xEE642BFCL,1L},{0xE1D9A786L,(-1L),0x500AEE4FL,0x500AEE4FL},{0x0466C6E7L,0x0466C6E7L,0x39500430L,0xC59D856DL},{(-1L),(-8L),1L,(-7L)},{0x949120BAL,(-1L),(-1L),1L},{1L,(-1L),7L,(-7L)}},{{(-1L),(-8L),(-10L),0xC59D856DL},{(-1L),0x0466C6E7L,0L,0x500AEE4FL},{(-4L),(-1L),0x949120BAL,1L},{0x8F4DA053L,(-7L),(-1L),0xD2BAA007L},{0xD20E8D5FL,1L,7L,0x39500430L},{1L,0x011858B6L,0x44493B7FL,0xEE642BFCL},{0L,(-1L),0xE1D9A786L,7L},{(-1L),0xDCFC2293L,0L,1L},{1L,0L,0x8A2A33B9L,(-1L)},{0x0466C6E7L,0xE1D9A786L,0xEE642BFCL,1L}},{{0xF3BFA5C1L,(-8L),(-1L),(-9L)},{0L,0xD20E8D5FL,(-1L),(-1L)},{0xD2BAA007L,0L,0xD2BAA007L,(-7L)},{0xE48C150DL,0x8A2A33B9L,(-1L),0x8F4DA053L},{(-1L),0xE1D9A786L,1L,0x8A2A33B9L},{1L,(-1L),1L,0x7AEF5DF7L},{(-1L),1L,(-1L),7L},{0xE48C150DL,0x015EE7B3L,0xD2BAA007L,0x39500430L},{0xD2BAA007L,0x39500430L,(-1L),0L},{0L,1L,(-1L),1L}},{{0xF3BFA5C1L,0xDCFC2293L,0xEE642BFCL,0x7AEF5DF7L},{0x0466C6E7L,0L,0x8A2A33B9L,0x500AEE4FL},{1L,(-4L),0L,1L},{(-1L),0x8A2A33B9L,0xE1D9A786L,6L},{0L,(-1L),0x44493B7FL,0xE1D9A786L},{1L,0L,7L,(-9L)},{0xD20E8D5FL,1L,(-1L),0xC59D856DL},{0x8F4DA053L,(-4L),0x949120BAL,0x8A2A33B9L},{(-4L),0L,0L,(-4L)},{(-1L),(-7L),(-10L),1L}},{{(-1L),0x015EE7B3L,7L,0xEE642BFCL},{1L,1L,(-1L),0xEE642BFCL},{0x949120BAL,0x015EE7B3L,1L,1L},{7L,0xFCDA9FAAL,0xE48C150DL,(-1L)},{0x39500430L,(-4L),(-1L),0x949120BAL},{0L,1L,0L,0xDCFC2293L},{1L,0L,0L,0x015EE7B3L},{0x7AEF5DF7L,(-1L),(-2L),0L},{0x500AEE4FL,0x8F4DA053L,(-1L),0x54D8F34AL},{1L,0x949120BAL,4L,6L}},{{6L,1L,0L,(-1L)},{0xE1D9A786L,1L,(-4L),(-4L)},{(-9L),(-1L),0x44493B7FL,(-1L)},{0xC59D856DL,(-9L),(-1L),(-6L)},{0x8A2A33B9L,0xE48C150DL,0x72F22971L,0xE48C150DL},{(-4L),1L,0x011858B6L,(-8L)},{1L,1L,0xE48C150DL,(-4L)},{0xEE642BFCL,0x2A8F8F8FL,1L,0x949120BAL},{0xEE642BFCL,0L,0xE48C150DL,(-9L)},{1L,0x949120BAL,0x011858B6L,0xFCDA9FAAL}}};
            int16_t *l_1819 = (void*)0;
            int16_t *l_1820[10] = {&g_1528,&l_525,&l_525,&g_1528,&l_525,&l_525,&g_1528,&l_525,&l_525,&g_1528};
            uint64_t *l_1822[1];
            int32_t l_1823 = 8L;
            uint32_t ** const *l_1825 = &l_221[2][0];
            uint32_t l_1852 = 18446744073709551611UL;
            int i, j, k;
            for (i = 0; i < 1; i++)
            {
                for (j = 0; j < 2; j++)
                {
                    for (k = 0; k < 1; k++)
                        l_1798[i][j][k] = 18446744073709551614UL;
                }
            }
            for (i = 0; i < 2; i++)
                l_1817[i] = &l_1760;
            for (i = 0; i < 1; i++)
                l_1822[i] = (void*)0;
            for (g_490 = 5; (g_490 >= 31); ++g_490)
            { /* block id: 765 */
                int8_t l_1758 = (-1L);
                int32_t l_1797 = 0x7B79B47FL;
                for (l_1529 = 0; (l_1529 >= 45); l_1529++)
                { /* block id: 768 */
                    int32_t l_1759 = 0x4872E089L;
                    uint64_t *l_1772 = &l_1725;
                    int32_t *l_1795[10];
                    int i;
                    for (i = 0; i < 10; i++)
                        l_1795[i] = &g_122;
                    l_1760++;
                    if (((safe_sub_func_uint32_t_u_u((l_1758 , (safe_add_func_int8_t_s_s((safe_add_func_int64_t_s_s((safe_lshift_func_uint64_t_u_u((--(*l_1772)), (l_1775 != l_1776))), (!(p_38 & 2UL)))), p_38))), (((g_1527 |= (safe_lshift_func_int64_t_s_u((safe_add_func_uint32_t_u_u((safe_div_func_int64_t_s_s(((*g_210) , (safe_mod_func_int32_t_s_s((!(safe_div_func_int8_t_s_s((p_38 >= ((safe_add_func_int32_t_s_s((safe_rshift_func_uint32_t_u_u((safe_sub_func_uint32_t_u_u(p_38, (-4L))), l_1758)), (*g_275))) < p_38)), g_214))), l_1759))), p_36)), 0x1BFE921CL)), 55))) , l_1758) && 0L))) >= g_960))
                    { /* block id: 772 */
                        ++l_1798[0][1][0];
                    }
                    else
                    { /* block id: 774 */
                        if ((*p_37))
                            break;
                        (*g_275) ^= l_1796[2][1];
                        (*l_1329) = l_1758;
                        (*l_1329) = l_1759;
                    }
                    for (g_486 = 0; (g_486 != 0); g_486 = safe_add_func_int64_t_s_s(g_486, 7))
                    { /* block id: 782 */
                        if (l_302)
                            goto lbl_1803;
                    }
                    (*l_1329) ^= (*p_35);
                }
                for (g_1062 = (-7); (g_1062 != (-1)); g_1062 = safe_add_func_uint32_t_u_u(g_1062, 6))
                { /* block id: 789 */
                    (*l_1329) ^= (*p_37);
                }
            }
            if ((safe_sub_func_uint32_t_u_u(((((((***l_459) |= (((*g_375) &= (l_1796[2][1] = (((*****l_444) = 5L) < (safe_add_func_int64_t_s_s(p_38, (~p_36)))))) <= (safe_rshift_func_int16_t_s_u((((g_779[3] == (l_1818[4][6][3] = (((safe_sub_func_uint8_t_u_u(p_38, (**g_1546))) , &g_122) != &g_122))) | (g_111 = (l_1823 |= ((((l_1821 ^= l_1798[0][0][0]) == l_1771) && l_1771) != l_1753)))) == 18446744073709551615UL), 14)))) < 0L) & p_38) == p_38) <= 4294967293UL), l_1753)))
            { /* block id: 801 */
                uint8_t *l_1829 = &g_1608;
                uint8_t **l_1828 = &l_1829;
                uint64_t ***l_1830[2][8] = {{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0,(void*)0}};
                int64_t ***l_1832 = &l_337[4];
                int32_t l_1835[1][3];
                int32_t l_1837 = 0x2136E032L;
                uint16_t *l_1853 = &l_1494;
                int i, j;
                for (i = 0; i < 1; i++)
                {
                    for (j = 0; j < 3; j++)
                        l_1835[i][j] = (-5L);
                }
                (***l_550) = l_1824[1];
                l_1837 &= ((0xACL >= ((((l_1825 == ((((safe_mod_func_uint32_t_u_u(((((-1L) <= ((void*)0 != l_1828)) , (&l_1822[0] == (l_1442 = &l_1443))) >= ((*p_35) = (+(((g_1833 = l_1832) == (**l_444)) , 0x3A77L)))), l_1834[3])) || 0x96B2L) , l_1835[0][0]) , (*g_692))) , 0x3A90F2C4L) & g_1324) | p_38)) == g_1836[0][5][0]);
                if ((((safe_mul_func_int32_t_s_s(((*p_35) &= 0x320DF738L), p_38)) >= ((((*l_1853) = (((safe_mod_func_int16_t_s_s((p_36 > (((safe_sub_func_int32_t_s_s(((*l_1329) = ((safe_div_func_uint32_t_u_u(4294967291UL, ((safe_lshift_func_int8_t_s_s(p_36, 6)) ^ ((safe_div_func_int8_t_s_s((0x27L <= (*g_778)), ((safe_rshift_func_uint64_t_u_u(p_38, 54)) ^ (l_1837 | l_1798[0][1][0])))) <= p_36)))) , 3L)), l_1818[4][6][3])) >= l_1852) ^ 0x2C9DL)), p_36)) , p_38) <= l_1837)) | p_38) & l_1796[2][1])) || (*p_35)))
                { /* block id: 810 */
                    uint8_t l_1857 = 0xD3L;
                    int32_t l_1874 = (-10L);
                    for (l_1529 = 0; (l_1529 <= 3); l_1529 += 1)
                    { /* block id: 813 */
                        uint8_t *l_1869 = &l_1857;
                        const int32_t l_1875 = 0xA8BE66B1L;
                        uint32_t l_1876[5][1] = {{18446744073709551612UL},{0x826987B6L},{18446744073709551612UL},{0x826987B6L},{18446744073709551612UL}};
                        int32_t l_1877[4];
                        int i, j;
                        for (i = 0; i < 4; i++)
                            l_1877[i] = 6L;
                        l_1857 = (safe_mul_func_uint8_t_u_u((g_80[(l_1529 + 2)] > ((**g_1266) & (~3L))), l_1818[0][3][2]));
                        (*p_35) = (((**l_1828) &= 255UL) < ((**g_1546) < (safe_mod_func_int64_t_s_s(p_36, (((((((l_1835[0][1] , (((l_1862[0][0][0] <= (((safe_rshift_func_int32_t_s_u(((((safe_sub_func_uint32_t_u_u(g_111, (safe_mul_func_uint64_t_u_u((l_1874 = ((0UL != ((*p_37) , (((*l_1869)--) ^ (safe_lshift_func_uint32_t_u_s((l_1852 , 0x1D057F07L), (**g_1627)))))) , p_36)), 0x4B8BB0834A0872DBLL)))) & 251UL) < 4294967289UL) ^ 0xE2L), l_1835[0][0])) == l_1875) , l_1852)) & p_36) >= l_1818[4][6][3])) | l_1876[1][0]) && 0x2BL) == 0xF0511BDDF5299DC4LL) <= 0L) , (***l_459)) || l_1877[1])))));
                    }
                    (***l_550) = &l_1874;
                }
                else
                { /* block id: 821 */
                    (*g_1878) = p_35;
                }
            }
            else
            { /* block id: 824 */
                return g_820[9][0];
            }
        }
        else
        { /* block id: 827 */
            uint16_t l_1900[4] = {0xEC57L,0xEC57L,0xEC57L,0xEC57L};
            int i;
            for (p_38 = 3; (p_38 <= 23); p_38++)
            { /* block id: 830 */
                uint8_t l_1901 = 1UL;
                int64_t *l_1902[4] = {&g_330[2][2],&g_330[2][2],&g_330[2][2],&g_330[2][2]};
                int i;
                l_1901 |= ((safe_lshift_func_int8_t_s_u((***l_459), (g_490 <= ((((void*)0 == &g_1254) , l_1885) != (g_1887 = g_1887))))) > (+((((safe_lshift_func_int16_t_s_s(((safe_add_func_int16_t_s_s(p_36, ((safe_unary_minus_func_uint16_t_u((((((safe_div_func_uint16_t_u_u((safe_add_func_uint8_t_u_u(((p_36 || (0UL ^ 0x1B4DDCC9L)) != (*p_37)), 0xE8L)), (**g_1216))) <= p_38) , (****l_549)) , l_1900[3]) >= (****l_550)))) >= g_484))) , p_36), 5)) ^ l_1900[3]) | p_36) , p_36)));
                (*p_35) = (((****l_444) = l_1902[1]) != l_1903);
                (*g_275) ^= (*p_35);
            }
        }
    }
    return p_36;
}


/* ------------------------------------------ */
/* 
 * reads : g_4 g_11 g_106 g_83 g_80 g_74 g_75 g_122 g_111 g_172 g_185 g_188 g_200
 * writes: g_4 g_106 g_11 g_185 g_196 g_200 g_209
 */
static int16_t  func_39(int64_t  p_40, int32_t ** p_41, uint64_t  p_42, int16_t  p_43, int32_t ** p_44)
{ /* block id: 14 */
    const int32_t *l_88 = &g_11;
    const int32_t **l_87 = &l_88;
    const int32_t ***l_86 = &l_87;
    int32_t l_113 = (-5L);
    int32_t l_117[1][3][5];
    uint32_t l_142 = 0xE9902BEBL;
    const uint64_t l_186 = 0x839AE79D42AF56C2LL;
    uint8_t *l_213[4][9] = {{&g_214,&g_214,&g_214,&g_214,&g_214,&g_214,&g_214,&g_214,(void*)0},{&g_214,&g_214,&g_214,&g_214,&g_214,&g_214,&g_214,&g_214,&g_214},{&g_214,&g_214,&g_214,&g_214,&g_214,&g_214,&g_214,&g_214,&g_214},{&g_214,&g_214,(void*)0,&g_214,&g_214,&g_214,&g_214,(void*)0,&g_214}};
    uint8_t **l_212 = &l_213[3][1];
    uint8_t ***l_217 = &l_212;
    int i, j, k;
    for (i = 0; i < 1; i++)
    {
        for (j = 0; j < 3; j++)
        {
            for (k = 0; k < 5; k++)
                l_117[i][j][k] = 0x2273A5A0L;
        }
    }
    for (g_4 = (-25); (g_4 >= 37); ++g_4)
    { /* block id: 17 */
        l_86 = l_86;
    }
    for (p_42 = (-29); (p_42 <= 20); p_42 = safe_add_func_int8_t_s_s(p_42, 3))
    { /* block id: 22 */
        uint32_t l_112 = 0x18C2A7CEL;
        int32_t l_116 = 0L;
        int32_t l_118 = 0x7502D142L;
        int32_t l_120 = 0xA36B5B5DL;
        int32_t l_121[7] = {1L,(-1L),(-1L),1L,(-1L),(-1L),1L};
        uint8_t l_123 = 255UL;
        int i;
        for (p_40 = 0; (p_40 >= 10); p_40 = safe_add_func_uint16_t_u_u(p_40, 4))
        { /* block id: 25 */
            const uint8_t l_97 = 6UL;
            int32_t ***l_103 = &g_74;
            int32_t ****l_104 = &l_103;
            uint32_t *l_105[10][4] = {{&g_106,&g_106,&g_106,&g_106},{&g_106,&g_106,&g_106,&g_106},{&g_106,&g_106,&g_106,&g_106},{&g_106,&g_106,&g_106,&g_106},{&g_106,&g_106,&g_106,&g_106},{&g_106,&g_106,&g_106,&g_106},{&g_106,&g_106,&g_106,&g_106},{&g_106,&g_106,&g_106,&g_106},{&g_106,&g_106,&g_106,&g_106},{&g_106,&g_106,&g_106,&g_106}};
            uint64_t *l_109 = (void*)0;
            uint64_t *l_110[10][6][3] = {{{&g_111,&g_111,&g_111},{&g_111,&g_111,&g_111},{&g_111,&g_111,(void*)0},{&g_111,&g_111,&g_111},{&g_111,&g_111,(void*)0},{&g_111,(void*)0,&g_111}},{{&g_111,(void*)0,&g_111},{&g_111,&g_111,&g_111},{&g_111,&g_111,&g_111},{&g_111,&g_111,&g_111},{&g_111,&g_111,&g_111},{&g_111,&g_111,&g_111}},{{&g_111,&g_111,(void*)0},{&g_111,&g_111,&g_111},{&g_111,(void*)0,&g_111},{&g_111,&g_111,&g_111},{&g_111,(void*)0,&g_111},{&g_111,&g_111,&g_111}},{{&g_111,&g_111,(void*)0},{&g_111,&g_111,&g_111},{&g_111,&g_111,&g_111},{&g_111,&g_111,(void*)0},{&g_111,&g_111,(void*)0},{&g_111,(void*)0,(void*)0}},{{&g_111,&g_111,&g_111},{&g_111,(void*)0,&g_111},{&g_111,&g_111,&g_111},{&g_111,&g_111,&g_111},{&g_111,&g_111,&g_111},{&g_111,&g_111,&g_111}},{{&g_111,&g_111,&g_111},{&g_111,&g_111,&g_111},{&g_111,(void*)0,&g_111},{&g_111,&g_111,&g_111},{&g_111,(void*)0,&g_111},{&g_111,&g_111,&g_111}},{{&g_111,&g_111,&g_111},{&g_111,&g_111,&g_111},{(void*)0,&g_111,&g_111},{&g_111,&g_111,&g_111},{(void*)0,&g_111,&g_111},{&g_111,&g_111,&g_111}},{{&g_111,(void*)0,&g_111},{&g_111,(void*)0,&g_111},{(void*)0,&g_111,&g_111},{&g_111,&g_111,(void*)0},{(void*)0,&g_111,(void*)0},{&g_111,&g_111,(void*)0}},{{&g_111,&g_111,&g_111},{&g_111,&g_111,&g_111},{(void*)0,(void*)0,(void*)0},{&g_111,&g_111,&g_111},{(void*)0,(void*)0,&g_111},{&g_111,&g_111,&g_111}},{{&g_111,&g_111,&g_111},{&g_111,&g_111,&g_111},{&g_111,&g_111,(void*)0},{&g_111,&g_111,&g_111},{&g_111,(void*)0,&g_111},{&g_111,&g_111,&g_111}}};
            int16_t l_114 = 0x4B96L;
            int32_t *l_115[9] = {&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11};
            int32_t l_119 = 0x4936848AL;
            uint32_t l_126 = 1UL;
            int32_t l_135[9][4][2] = {{{0xDB854CE0L,1L},{0x3495DE3CL,0xA9DA5B25L},{(-9L),7L},{0x3D71A1B5L,(-9L)}},{{0x8BF41CBFL,0xBD1E669EL},{0xBD1E669EL,(-1L)},{0x3D71A1B5L,0xA9DA5B25L},{(-1L),0xA9DA5B25L}},{{0x3D71A1B5L,(-1L)},{0xBD1E669EL,0xBD1E669EL},{0x8BF41CBFL,(-9L)},{0x3D71A1B5L,7L}},{{(-9L),0xA9DA5B25L},{0x3495DE3CL,(-9L)},{0xBD1E669EL,0x8BF41CBFL},{0xBD1E669EL,(-9L)}},{{0x3495DE3CL,0xA9DA5B25L},{(-9L),7L},{0x3D71A1B5L,(-9L)},{0x8BF41CBFL,0xBD1E669EL}},{{0xBD1E669EL,(-1L)},{0x3D71A1B5L,0xA9DA5B25L},{(-1L),0xA9DA5B25L},{0x3D71A1B5L,(-1L)}},{{0xBD1E669EL,0xBD1E669EL},{0x8BF41CBFL,(-9L)},{0x3D71A1B5L,7L},{(-9L),0xA9DA5B25L}},{{0x3495DE3CL,(-9L)},{0xBD1E669EL,0x8BF41CBFL},{0xBD1E669EL,(-9L)},{0x3495DE3CL,0xA9DA5B25L}},{{(-9L),7L},{0x3D71A1B5L,(-9L)},{0x8BF41CBFL,0xBD1E669EL},{0xBD1E669EL,(-1L)}}};
            int64_t l_140 = 0x689637CC31644C7ALL;
            int32_t * const *l_165 = &g_75[6][1];
            int32_t **l_167 = (void*)0;
            int32_t ***l_166 = &l_167;
            uint8_t *l_181 = (void*)0;
            uint8_t *l_182 = &l_123;
            int8_t *l_183[8] = {&g_184,&g_184,&g_184,&g_184,&g_184,&g_184,&g_184,&g_184};
            int64_t *l_187 = &l_140;
            uint32_t l_205 = 0xAE7A31BEL;
            int i, j, k;
            (**p_44) = ((safe_mul_func_int64_t_s_s(((safe_mod_func_int32_t_s_s((**p_41), l_97)) , ((l_114 = (l_113 = (l_112 = ((safe_add_func_uint64_t_u_u(((!p_43) & (((*l_104) = l_103) == &l_87)), (((++g_106) , g_106) , ((g_83 && g_80[0]) == (p_43 == p_40))))) != g_11)))) || (*l_88))), p_43)) , l_112);
            l_123--;
            if (((****l_104) &= (-1L)))
            { /* block id: 34 */
                uint32_t l_129 = 0UL;
                int32_t l_132 = (-1L);
                int32_t l_133 = 0L;
                int32_t l_134 = 0xF709CE47L;
                int32_t l_136 = 0xD690791EL;
                int32_t l_137 = (-3L);
                int32_t l_138 = 9L;
                int32_t l_139 = 0x0EEE41ABL;
                int32_t l_141 = 0x892371F5L;
                l_126--;
                --l_129;
                --l_142;
                (**p_41) = (safe_rshift_func_int16_t_s_s(((safe_sub_func_int16_t_s_s((p_42 | (0UL ^ (safe_lshift_func_int64_t_s_u((safe_add_func_int16_t_s_s(l_133, l_123)), 34)))), (251UL > (-2L)))) , (safe_add_func_int16_t_s_s((safe_sub_func_int8_t_s_s(g_122, p_40)), ((safe_lshift_func_int16_t_s_u(((((((p_42 == g_80[5]) && g_4) == l_129) , (**p_44)) & (**p_44)) & 0L), 1)) , p_43)))), 7));
            }
            else
            { /* block id: 39 */
                const int32_t l_159 = 0xCA310926L;
                (****l_104) = ((l_159 || 1L) | 0x5155DE64BFC915AALL);
            }
            if (((((((safe_unary_minus_func_int64_t_s(((l_116 ^= (((**g_74) & (safe_mod_func_uint16_t_u_u(((((*l_187) &= ((l_121[2] = (safe_mul_func_int16_t_s_s(g_111, 0x6DA3L))) != (((l_165 == ((*l_166) = (*l_103))) != (((safe_rshift_func_uint64_t_u_s(((((safe_rshift_func_int64_t_s_u(p_40, ((g_172 != &l_103) , (g_185 &= ((p_43 = (safe_div_func_uint32_t_u_u((safe_div_func_int64_t_s_s(((l_117[0][2][0] = (safe_unary_minus_func_uint8_t_u(((*l_182) &= ((&l_103 != &g_173) , g_111))))) && p_42), 1L)), g_4))) && g_106))))) ^ g_111) && l_186) > 0x4778L), 1)) , 6L) || g_80[4])) & 1L))) , g_188) == p_44), (**l_87)))) >= g_122)) , 0xFFD3D122B5390025LL))) | g_106) < g_11) ^ (***l_86)) != g_111) , l_121[5]))
            { /* block id: 50 */
                uint32_t l_189 = 18446744073709551613UL;
                l_189 |= (**l_87);
            }
            else
            { /* block id: 52 */
                uint32_t l_211[7][6][3] = {{{4294967286UL,0x9396E87CL,0x0EB8E210L},{4294967286UL,4294967286UL,1UL},{4294967293UL,0x9396E87CL,0x9396E87CL},{1UL,4294967290UL,4294967291UL},{4294967293UL,0x1E98489BL,4294967293UL},{4294967286UL,1UL,4294967291UL}},{{4294967286UL,4294967286UL,0x9396E87CL},{0x4E7126FBL,1UL,1UL},{0x9396E87CL,0x1E98489BL,0x0EB8E210L},{0x4E7126FBL,4294967290UL,0x4E7126FBL},{4294967286UL,0x9396E87CL,0x0EB8E210L},{4294967286UL,4294967286UL,1UL}},{{4294967293UL,0x9396E87CL,0x9396E87CL},{1UL,4294967290UL,4294967291UL},{4294967293UL,0x1E98489BL,4294967293UL},{4294967286UL,1UL,4294967291UL},{4294967286UL,4294967286UL,0x9396E87CL},{0x4E7126FBL,1UL,1UL}},{{0x9396E87CL,0x1E98489BL,0x0EB8E210L},{0x4E7126FBL,4294967290UL,0x4E7126FBL},{4294967286UL,0x9396E87CL,0x0EB8E210L},{4294967286UL,4294967286UL,1UL},{4294967293UL,0x9396E87CL,0x9396E87CL},{1UL,4294967290UL,4294967291UL}},{{4294967293UL,0x1E98489BL,4294967293UL},{4294967286UL,1UL,4294967291UL},{4294967286UL,4294967286UL,0x9396E87CL},{0x4E7126FBL,1UL,1UL},{0x9396E87CL,0x1E98489BL,0x0EB8E210L},{0x4E7126FBL,4294967290UL,0x4E7126FBL}},{{4294967286UL,0x9396E87CL,0x0EB8E210L},{4294967286UL,4294967286UL,1UL},{4294967293UL,0x9396E87CL,0x9396E87CL},{1UL,4294967290UL,4294967291UL},{4294967293UL,0x1E98489BL,4294967293UL},{4294967286UL,1UL,4294967291UL}},{{4294967286UL,4294967286UL,0x9396E87CL},{0x4E7126FBL,0x4E7126FBL,0x4E7126FBL},{4294967293UL,4294967286UL,0x1E98489BL},{4294967291UL,4294967286UL,4294967291UL},{0x9396E87CL,4294967293UL,0x1E98489BL},{1UL,1UL,0x4E7126FBL}}};
                int i, j, k;
                if (l_123)
                { /* block id: 53 */
                    uint16_t *l_194 = (void*)0;
                    uint16_t *l_195[1];
                    int64_t *l_199 = &g_200;
                    int32_t l_208 = 1L;
                    int i;
                    for (i = 0; i < 1; i++)
                        l_195[i] = &g_196;
                    l_117[0][1][0] &= ((**l_87) , (safe_mod_func_int32_t_s_s(((**p_41) = (safe_unary_minus_func_uint64_t_u(((!(l_113 = ((l_121[1] | g_83) | ((g_196 = p_43) == (g_122 <= (safe_mul_func_int32_t_s_s(((l_118 = ((*l_199) ^= ((*l_187) &= g_83))) && ((safe_lshift_func_int32_t_s_u((**p_44), 21)) || ((safe_mod_func_uint16_t_u_u(((l_205 ^ (safe_rshift_func_uint64_t_u_s(((l_208 , p_43) < g_80[1]), l_208))) >= 4294967295UL), p_40)) , p_42))), l_123))))))) || p_42)))), p_43)));
                }
                else
                { /* block id: 61 */
                    if (l_121[2])
                        break;
                }
                g_209 = (l_120 , &l_187);
                (***l_103) = l_211[4][2][0];
            }
        }
    }
    (*l_217) = l_212;
    return (*l_88);
}


/* ------------------------------------------ */
/* 
 * reads : g_4 g_11 g_74 g_80 g_75
 * writes: g_11 g_80
 */
static int16_t  func_45(int8_t  p_46)
{ /* block id: 4 */
    int8_t l_52 = 9L;
    int32_t l_77[9][3] = {{(-1L),(-1L),(-1L)},{(-1L),(-1L),(-1L)},{(-1L),(-1L),(-1L)},{(-1L),(-1L),(-1L)},{(-1L),(-1L),(-1L)},{(-1L),(-1L),(-1L)},{(-1L),(-1L),(-1L)},{(-1L),(-1L),(-1L)},{(-1L),(-1L),(-1L)}};
    int32_t l_78 = 0L;
    int8_t l_79 = 0x9FL;
    int i, j;
    if ((safe_mul_func_uint64_t_u_u(g_4, l_52)))
    { /* block id: 5 */
        int32_t *l_53 = &g_11;
        uint16_t l_67[2];
        int i;
        for (i = 0; i < 2; i++)
            l_67[i] = 0xE328L;
        (*l_53) |= ((void*)0 != l_53);
        (*l_53) = (((safe_unary_minus_func_uint8_t_u((safe_mul_func_int64_t_s_s((0x18L || (p_46 , (safe_lshift_func_uint16_t_u_s(((((*l_53) , &l_53) == ((((safe_rshift_func_uint8_t_u_s((safe_add_func_uint8_t_u_u(((safe_mul_func_int8_t_s_s((((safe_sub_func_uint64_t_u_u(l_67[0], (safe_sub_func_int32_t_s_s(p_46, (safe_mul_func_int64_t_s_s((safe_mul_func_uint16_t_u_u((*l_53), ((p_46 , (1L ^ 0x91E2L)) | g_4))), p_46)))))) , p_46) >= g_11), l_52)) > (*l_53)), l_52)), 7)) == (*l_53)) == (*l_53)) , (void*)0)) <= l_52), g_4)))), g_4)))) , (void*)0) == g_74);
    }
    else
    { /* block id: 8 */
        int32_t *l_76[3];
        int i;
        for (i = 0; i < 3; i++)
            l_76[i] = &g_11;
        g_80[5]++;
        (**g_74) &= 1L;
    }
    return p_46;
}




/* ---------------------------------------- */
int main (int argc, char* argv[])
{
    int i, j, k;
    int print_hash_value = 0;
    if (argc == 2 && strcmp(argv[1], "1") == 0) print_hash_value = 1;
    platform_main_begin();
    crc32_gentab();
    func_1();
    transparent_crc(g_4, "g_4", print_hash_value);
    transparent_crc(g_11, "g_11", print_hash_value);
    for (i = 0; i < 6; i++)
    {
        transparent_crc(g_80[i], "g_80[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_83, "g_83", print_hash_value);
    transparent_crc(g_106, "g_106", print_hash_value);
    transparent_crc(g_111, "g_111", print_hash_value);
    transparent_crc(g_122, "g_122", print_hash_value);
    transparent_crc(g_184, "g_184", print_hash_value);
    transparent_crc(g_185, "g_185", print_hash_value);
    transparent_crc(g_196, "g_196", print_hash_value);
    transparent_crc(g_200, "g_200", print_hash_value);
    transparent_crc(g_214, "g_214", print_hash_value);
    transparent_crc(g_274, "g_274", print_hash_value);
    transparent_crc(g_276, "g_276", print_hash_value);
    for (i = 0; i < 3; i++)
    {
        for (j = 0; j < 10; j++)
        {
            transparent_crc(g_330[i][j], "g_330[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    for (i = 0; i < 3; i++)
    {
        for (j = 0; j < 10; j++)
        {
            transparent_crc(g_376[i][j], "g_376[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_417, "g_417", print_hash_value);
    transparent_crc(g_483, "g_483", print_hash_value);
    transparent_crc(g_484, "g_484", print_hash_value);
    transparent_crc(g_485, "g_485", print_hash_value);
    transparent_crc(g_486, "g_486", print_hash_value);
    transparent_crc(g_487, "g_487", print_hash_value);
    for (i = 0; i < 9; i++)
    {
        for (j = 0; j < 5; j++)
        {
            transparent_crc(g_488[i][j], "g_488[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    for (i = 0; i < 4; i++)
    {
        for (j = 0; j < 7; j++)
        {
            transparent_crc(g_489[i][j], "g_489[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_490, "g_490", print_hash_value);
    for (i = 0; i < 2; i++)
    {
        transparent_crc(g_491[i], "g_491[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_492, "g_492", print_hash_value);
    transparent_crc(g_493, "g_493", print_hash_value);
    for (i = 0; i < 5; i++)
    {
        transparent_crc(g_494[i], "g_494[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_495, "g_495", print_hash_value);
    transparent_crc(g_496, "g_496", print_hash_value);
    transparent_crc(g_497, "g_497", print_hash_value);
    for (i = 0; i < 2; i++)
    {
        transparent_crc(g_688[i], "g_688[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    for (i = 0; i < 5; i++)
    {
        transparent_crc(g_779[i], "g_779[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_789, "g_789", print_hash_value);
    for (i = 0; i < 10; i++)
    {
        for (j = 0; j < 1; j++)
        {
            transparent_crc(g_820[i][j], "g_820[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_923, "g_923", print_hash_value);
    transparent_crc(g_960, "g_960", print_hash_value);
    transparent_crc(g_961, "g_961", print_hash_value);
    transparent_crc(g_1034, "g_1034", print_hash_value);
    transparent_crc(g_1062, "g_1062", print_hash_value);
    transparent_crc(g_1218, "g_1218", print_hash_value);
    transparent_crc(g_1294, "g_1294", print_hash_value);
    transparent_crc(g_1324, "g_1324", print_hash_value);
    for (i = 0; i < 5; i++)
    {
        for (j = 0; j < 4; j++)
        {
            transparent_crc(g_1325[i][j], "g_1325[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_1358, "g_1358", print_hash_value);
    transparent_crc(g_1419, "g_1419", print_hash_value);
    transparent_crc(g_1527, "g_1527", print_hash_value);
    transparent_crc(g_1528, "g_1528", print_hash_value);
    transparent_crc(g_1608, "g_1608", print_hash_value);
    transparent_crc(g_1617, "g_1617", print_hash_value);
    for (i = 0; i < 2; i++)
    {
        for (j = 0; j < 6; j++)
        {
            for (k = 0; k < 8; k++)
            {
                transparent_crc(g_1836[i][j][k], "g_1836[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    transparent_crc(g_2040, "g_2040", print_hash_value);
    transparent_crc(g_2094, "g_2094", print_hash_value);
    transparent_crc(g_2357, "g_2357", print_hash_value);
    transparent_crc(g_2364, "g_2364", print_hash_value);
    transparent_crc(g_2609, "g_2609", print_hash_value);
    for (i = 0; i < 9; i++)
    {
        for (j = 0; j < 8; j++)
        {
            transparent_crc(g_2924[i][j], "g_2924[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_2936, "g_2936", print_hash_value);
    transparent_crc(g_2968, "g_2968", print_hash_value);
    transparent_crc(g_3346, "g_3346", print_hash_value);
    transparent_crc(g_3356, "g_3356", print_hash_value);
    transparent_crc(g_3439, "g_3439", print_hash_value);
    transparent_crc(g_3445, "g_3445", print_hash_value);
    transparent_crc(g_3607, "g_3607", print_hash_value);
    transparent_crc(g_3608, "g_3608", print_hash_value);
    transparent_crc(g_3763, "g_3763", print_hash_value);
    transparent_crc(g_3872, "g_3872", print_hash_value);
    transparent_crc(g_4013, "g_4013", print_hash_value);
    transparent_crc(g_4059, "g_4059", print_hash_value);
    transparent_crc(g_4609, "g_4609", print_hash_value);
    for (i = 0; i < 1; i++)
    {
        for (j = 0; j < 10; j++)
        {
            transparent_crc(g_4776[i][j], "g_4776[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_4968, "g_4968", print_hash_value);
    transparent_crc(g_5054, "g_5054", print_hash_value);
    transparent_crc(g_5074, "g_5074", print_hash_value);
    transparent_crc(g_5222, "g_5222", print_hash_value);
    transparent_crc(g_5282, "g_5282", print_hash_value);
    for (i = 0; i < 5; i++)
    {
        transparent_crc(g_5343[i], "g_5343[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    for (i = 0; i < 3; i++)
    {
        transparent_crc(g_5359[i], "g_5359[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    for (i = 0; i < 3; i++)
    {
        for (j = 0; j < 4; j++)
        {
            for (k = 0; k < 3; k++)
            {
                transparent_crc(g_5393[i][j][k], "g_5393[i][j][k]", print_hash_value);
                if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);

            }
        }
    }
    for (i = 0; i < 2; i++)
    {
        for (j = 0; j < 6; j++)
        {
            transparent_crc(g_5488[i][j], "g_5488[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    for (i = 0; i < 10; i++)
    {
        transparent_crc(g_5492[i], "g_5492[i]", print_hash_value);
        if (print_hash_value) printf("index = [%d]\n", i);

    }
    transparent_crc(g_5604, "g_5604", print_hash_value);
    transparent_crc(g_5664, "g_5664", print_hash_value);
    transparent_crc(g_5697, "g_5697", print_hash_value);
    for (i = 0; i < 2; i++)
    {
        for (j = 0; j < 10; j++)
        {
            transparent_crc(g_5703[i][j], "g_5703[i][j]", print_hash_value);
            if (print_hash_value) printf("index = [%d][%d]\n", i, j);

        }
    }
    transparent_crc(g_5824, "g_5824", print_hash_value);
    transparent_crc(g_5965, "g_5965", print_hash_value);
    platform_main_end(crc32_context ^ 0xFFFFFFFFUL, print_hash_value);
    return 0;
}

/************************ statistics *************************
XXX max struct depth: 0
breakdown:
   depth: 0, occurrence: 1698
XXX total union variables: 0

XXX non-zero bitfields defined in structs: 0
XXX zero bitfields defined in structs: 0
XXX const bitfields defined in structs: 0
XXX volatile bitfields defined in structs: 0
XXX structs with bitfields in the program: 0
breakdown:
XXX full-bitfields structs in the program: 0
breakdown:
XXX times a bitfields struct's address is taken: 0
XXX times a bitfields struct on LHS: 0
XXX times a bitfields struct on RHS: 0
XXX times a single bitfield on LHS: 0
XXX times a single bitfield on RHS: 0

XXX max expression depth: 52
breakdown:
   depth: 1, occurrence: 382
   depth: 2, occurrence: 103
   depth: 3, occurrence: 8
   depth: 4, occurrence: 6
   depth: 5, occurrence: 2
   depth: 6, occurrence: 2
   depth: 7, occurrence: 1
   depth: 8, occurrence: 3
   depth: 9, occurrence: 1
   depth: 11, occurrence: 1
   depth: 12, occurrence: 3
   depth: 13, occurrence: 1
   depth: 14, occurrence: 1
   depth: 15, occurrence: 4
   depth: 16, occurrence: 3
   depth: 17, occurrence: 1
   depth: 18, occurrence: 3
   depth: 19, occurrence: 4
   depth: 20, occurrence: 6
   depth: 21, occurrence: 5
   depth: 22, occurrence: 3
   depth: 23, occurrence: 3
   depth: 24, occurrence: 6
   depth: 25, occurrence: 3
   depth: 26, occurrence: 5
   depth: 27, occurrence: 4
   depth: 28, occurrence: 5
   depth: 29, occurrence: 3
   depth: 30, occurrence: 4
   depth: 31, occurrence: 2
   depth: 32, occurrence: 2
   depth: 33, occurrence: 1
   depth: 34, occurrence: 2
   depth: 35, occurrence: 2
   depth: 36, occurrence: 2
   depth: 37, occurrence: 2
   depth: 38, occurrence: 1
   depth: 40, occurrence: 1
   depth: 50, occurrence: 1
   depth: 52, occurrence: 1

XXX total number of pointers: 1194

XXX times a variable address is taken: 3187
XXX times a pointer is dereferenced on RHS: 769
breakdown:
   depth: 1, occurrence: 469
   depth: 2, occurrence: 180
   depth: 3, occurrence: 62
   depth: 4, occurrence: 58
XXX times a pointer is dereferenced on LHS: 760
breakdown:
   depth: 1, occurrence: 553
   depth: 2, occurrence: 118
   depth: 3, occurrence: 49
   depth: 4, occurrence: 32
   depth: 5, occurrence: 8
XXX times a pointer is compared with null: 142
XXX times a pointer is compared with address of another variable: 27
XXX times a pointer is compared with another pointer: 38
XXX times a pointer is qualified to be dereferenced: 26611

XXX max dereference level: 5
breakdown:
   level: 0, occurrence: 0
   level: 1, occurrence: 2298
   level: 2, occurrence: 1338
   level: 3, occurrence: 556
   level: 4, occurrence: 647
   level: 5, occurrence: 354
XXX number of pointers point to pointers: 693
XXX number of pointers point to scalars: 501
XXX number of pointers point to structs: 0
XXX percent of pointers has null in alias set: 29.6
XXX average alias set size: 1.53

XXX times a non-volatile is read: 5147
XXX times a non-volatile is write: 2498
XXX times a volatile is read: 230
XXX    times read thru a pointer: 142
XXX times a volatile is write: 131
XXX    times written thru a pointer: 102
XXX times a volatile is available for access: 4.74e+03
XXX percentage of non-volatile access: 95.5

XXX forward jumps: 1
XXX backward jumps: 21

XXX stmts: 387
XXX max block depth: 5
breakdown:
   depth: 0, occurrence: 31
   depth: 1, occurrence: 39
   depth: 2, occurrence: 59
   depth: 3, occurrence: 83
   depth: 4, occurrence: 65
   depth: 5, occurrence: 110

XXX percentage a fresh-made variable is used: 15.5
XXX percentage an existing variable is used: 84.5
********************* end of statistics **********************/

/* Found checksum difference between compiler implementations */
/* gcc -O0 : AACB708F */
/* gcc -O1 : AACB708F */
/* gcc -O2 : AACB708F */
/* gcc -Os : 60CF545B */
/* gcc -O3 : AACB708F */
/* clang -O0 : AACB708F */
/* clang -O1 : AACB708F */
/* clang -O2 : AACB708F */
/* clang -Os : AACB708F */
/* clang -O3 : AACB708F */
/* please refer to http://embed.cs.utah.edu/csmith/using.html on how to report a bug */
